You are here:  » Import Field Templates


Import Field Templates

Submitted by ItsDavid on Wed, 2019-01-02 07:11 in

Hi, David hope your Holidays have been relaxing and full of joy.

I have a question hopefully it's not too far out of the scope of PT but it never hurts to ask I guess.

Is there an easy way to have an option to save the fields I set up for a network feed on the fields setup page as a template this way whenever I have a new merchant feed from that network with the same records/fields I can select a saved template from a dropdown list and it will prepopulate the correct fields for that network feed? This would save a lot of time not having to go through each field and set it for every feed from that network which is very time consuming when dealing with hundreds of merchants from 6 networks.

Hopefully, I explained what I am looking to do good enough because I am not very good at doing that. I am better at thinking through the processes and not so good at explaining what I'm after.

Best Regards,
David

Submitted by support on Wed, 2019-01-02 09:23

Hi David,

You can add any field names used by your networks that aren't automatically selected on Feed Registration Step 2 to the $config_commonFields array in config.advanced.php. For example, starting at line 30 is the array for common field names for the Price field:

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

If you have a merchant that uses PRICE/SALE and you want this to be selected with highest priority, insert it at the front of the list for example:

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

(and similarly for all other fields)

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by ItsDavid on Wed, 2019-01-02 12:32

Works like a charm! Thank you for the super fast reply.