You are here:  » total products and sku search result

Support Forum



total products and sku search result

Submitted by henk on Tue, 2012-09-25 19:48 in

Hi David,

There is one problem with my search.php, when there isn't a sku in the import feed it doesn't show up in search result.

And the total products on the frontend is different as backend

Thx
Henk

Submitted by support on Wed, 2012-09-26 07:55

Hello Henk,

If your code relies on SKU values being present, one option would be to set the SKU to the value of the dupe_hash field, so that it isn't empty. To do this, in your includes/admin.php look for the following code around line 356:

    $dupe_hash = md5($dupe_key);

...and REPLACE with:

    $dupe_hash = md5($dupe_key);
    if (!$importRecord["sku"]) $importRecord["sku"] = $dupe_hash;

Regarding product count; the admin interface Total Products count is literally the total number of records in the pt_products table. Whereas on the front-end, because search queries are GROUPed by name, it will normally be less as compared products are counted as 1.

Cheers,
David.
--
PriceTapestry.com