Hi David,
Hope you're well!
Just having a tiny issue here - one of the datafeeds i'm importing has the price set as '0' for some products (mobile phones which are free on pay monthly contracts).
How can I tweak the script to import products with price set as '0'?
Thanks!
Hi,
This is because of the minimum required fields checking code during import. To allow prices of 0.00 to be imported, look for the following code beginning at line 268 in includes/admin.php:
/* check product record for minimum required fields */
if (!$importRecord["name"] || !$importRecord["buy_url"] || !$importRecord["price"]) return;
...and REPLACE with:
/* check product record for minimum required fields */
if (!$importRecord["name"] || !$importRecord["buy_url"]) return;
Cheers,
David.