You are here:  » Invalid Price in Parse Analysis


Invalid Price in Parse Analysis

Submitted by mikewall on Wed, 2019-06-19 16:42 in

Hello David

Whilst running a test data for our mobile phone comparison website most of the records errored out for the reason of 'Invalid Price' in the Parse Analysis report.

This is due to many of the prices being '0' as the phones are generally free of charge.

Had a look though the forum and can't seem to find a fix to get '0' recognised as a 'valid' price?

Kind Regards
Mike

Submitted by support on Thu, 2019-06-20 09:19

Hello Mike,

To allow a price to import as 0.00 edit includes/admin.php and look for the following code at line 447:

    /* 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.
--
PriceTapestry.com