hi,
I have some datafeeds that dont have individual Buy URL or outgoing links,
can i setup a conditional optional field for Buy URL that i can input on the admin "Registration Step 2" section?
I would like to have the option to redirect all links to either the datafeed Buy URLs or a generic standard outgoing link for a specific datafeed.
thank you in advance.
Hi Oisin,
The easiest thing to do in this situation is to register an empty field as the Buy URL and then use a "Text After" filter against Buy URL to enter the direct link that you wish to use for all outgoing links in that feed.
However, before you do this you will need to remove the check to see if Buy URL is valid during the import. To do this, find the following code in includes/admin.php (starting at line 153):
/* check product record for minimum required fields */
if (!$record[$admin_importFeed["field_name"]] || !$record[$admin_importFeed["field_buy_url"]] || !$record[$admin_importFeed["field_price"]]) return;
...and change this as follows:
/* check product record for minimum required fields */
if (!$record[$admin_importFeed["field_name"]] || !$record[$admin_importFeed["field_price"]]) return;
That will remove the check for Buy URL, and you can then proceed to register an empty field and use the filters to set your fixed URL...
Hope this helps!
Cheers,
David.