You are here:  » Price 0 not importing...

Support Forum



Price 0 not importing...

Submitted by bingobongo on Sat, 2010-05-22 17:51 in

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!

Submitted by support on Sat, 2010-05-22 18:48

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.