You are here:  » Automatically fill in import extra fields


Automatically fill in import extra fields

Submitted by paullas on Thu, 2021-12-09 22:05 in

Hi David.

I hope all is well.

I am wondering if you can help. I have added extra import fields like colour, warranty etc but every time i do an import i always have to re-select the correct fields in the drop downs.

Is there anyway to make this auto fill in the fields?

Many thanks

Paul

Submitted by support on Fri, 2021-12-10 09:58

Hi Paul,

Sure - in config.advanced.php you'll find the $config_commonFields array which controls the auto-selection of the fields on Feed Registration (Step 2) for example;

  $config_commonFields["brand"] =
    array("BRAND/BRANDNAME","BrandName","brandName","BRAND","brand","Brand","MANUFACTURER");

...so you can simply add similar entries for your custom fields after that line, for example;

  $config_commonFields["colour"] =
    array("COLOUR","colour","SPECIFICATION/COLOUR");

Cheers,
David.
--
PriceTapestry.com

Submitted by paullas on Fri, 2021-12-10 11:38

excellent thank you.