You are here:  » Customer Category Display

Support Forum



Customer Category Display

Submitted by ser_seven on Fri, 2012-08-24 09:44 in

Hi
Under search bar i have 3 links Merchant, Category and Brands
When i click on Category i see the list of all categories for customer.
I think that i see my categories.

I have wrong an setup ?

Best Regards

Submitted by support on Fri, 2012-08-24 12:06

Hello Ser,

Do you mean that you only want to see categories that you have set-up in Category Mapping? Bear in mind that for a category name in Category Mapping to appear in the Category index there must have been products imported with that category name - either as a result of triggering the mapping by the merchant's category matching an alternative - or just having the same name anyway.

To restrict categories to only those set-up in Category Mapping, look for this comment at line 315 in includes/admin.php:

    /* niche mode */

...and just before that line, insert this new code:

  if (!in_array($importRecord["category"],$admin_importCategoryMappings)) $importRecord["category"] = "";

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by ser_seven on Fri, 2012-08-24 15:30

Tnk u David
I insert the code in this way

    if (!$importRecord["name"] || !$importRecord["buy_url"] || !$importRecord["price"]) return;
    if (!in_array($importRecord["category"],$admin_importCategoryMappings)) $importRecord["category"] = "";
    /* niche mode */

but not found.
I wrong?

Tnks

Submitted by support on Fri, 2012-08-24 16:17

Hello Ser,

The code looks fine so when you click Category you should see only categories from Category Mapping (as long as there are products in those categories).

Perhaps easier, could you email me a link to the installation and the URLs that show the problem, and any password required for /admin/ and i'll take a look for you...

Cheers,
David.
--
PriceTapestry.com