You are here:  » Predefined Import Options

Support Forum



Predefined Import Options

Submitted by TWDesigns on Thu, 2013-01-17 16:33 in

Is it possible to predefine the import options when registering a product? For example 100% of the time I use Fields 4, 2, 12, 7, 5, 8, 22, and 20. It never changes. Today I had to load 10 new feeds and just repeated the process when registering them.

Thanks in advance,
Tommy

Submitted by support on Thu, 2013-01-17 20:58

Hi Tommy,

You can customise the $config_commonFields array in config.advanced.php. For example, if you often register FIELD4 as the Price then you could modify that entry of the array as follows:

  $config_commonFields["price"] =
    array("FIELD4","PRICE/BUYNOW","price","PRICE","Price","search_price","online_price","our_price");

I will also include a mod in the next update to Price Tapestry (provisionally 13/01A) and option on Feed Registration Step 1 to copy the registration parameters of another feed which should really speed up the process... An admin upgrade patch will be available as with the last update.

Cheers,
David.
--
PriceTapestry.com

Submitted by TWDesigns on Fri, 2013-01-18 01:16

Awesome David!

Thank you

Submitted by TWDesigns on Fri, 2013-01-18 01:26

What would I put for the merchant name? Something like:

$config_commonFields["merchant"] =
    array("FIELD4","MERCHANT/MERCHANTNAME","merchant name","MERCHANT NAME","Merchant Name","merchant_name","MERCHANT_NAME","Merchant_Name","merchant_name","MERCHANT_NAME","Merchant_Name","merchant name","MERCHANT NAME","Merchant Name","merchantname","MERCHANTNAME","MerchantName","merchantName","MERCHANT","merchant","Merchant");

Submitted by support on Fri, 2013-01-18 12:15

Hello Bak,

That's correct but the name needs to match exactly the field name that you normally register (my example of FIELD4 would be the case of CSV feeds with _no_ header row. I think in your post you may have used field 4 to indirectly to the field that you normally register, so it's the actual name of that field you would need to use. Assuming the field name is "ShopName", then the modification would be:

$config_commonFields["merchant"] =
    array("ShopName","MERCHANT/MERCHANTNAME","merchant name","MERCHANT NAME","Merchant Name","merchant_name","MERCHANT_NAME","Merchant_Name","merchant_name","MERCHANT_NAME","Merchant_Name","merchant name","MERCHANT NAME","Merchant Name","merchantname","MERCHANTNAME","MerchantName","merchantName","MERCHANT","merchant","Merchant");

Cheers,
David.
--
PriceTapestry.com