You are here:  » Brands Filters as Categories / Sub Categories


Brands Filters as Categories / Sub Categories

Submitted by affiliben on Tue, 2010-04-20 16:03 in

Hi David
Over the last few years I have purchased and tried a number of scripts and this is the first one that can import and parse xml and that can also integrate with other cms (wordpress etc) so thank you for that. I have also managed to add extra fields etc, so it is much more flexible than other ones I have used.I have also seen from the forum how much support you have given to other users, which easily justifies the price.
The only thing I am disappointed in is the sub category issue, as although I have seen from the forums, that this is not supported, it is an issue that is necessary for the type of site I am doing. I have read about using multiple installations, which I might do in addition, but my categories are not necessarily unique which can throw up errors.
However, my site does not need Brands, so is there a way that I can configure the categories, so they are brand dependant. For instance, I saw on one post with cms integration you can use the following code to filter categories by brands on a cms page.

<?php
  $common_baseHREF 
"http://www.mydomain.com/shopping/";
  
$common_path "/var/www/vhosts/mydomain.com/httpdocs/shopping/";
  
$_GET["q"] = "category:jeans";
  
$_GET["brand"] = "brand:levis";
  require(
$common_path."searchExternal.php");
?>

This does generate mostly correct results but lets in jeans that is a non levis brand. ( I am not doing clothes, just using that as an example), but even if it did work, the normal categories in the installation directory would still not be brand dependent.
Is there a way to use the brands as the master categories and the categories as the sub categories?
Or alternatively, how much work would it take to put in one level of subcategory (I have seen that someone has tried to commission that on a coders forum)
Any help appreciated. ( I am not a php coder, but quite good at cut and paste)
Thanks
Ben

Submitted by support on Wed, 2010-04-21 09:23

Hello Ben,

Thank you for your comments.

With the latest version of searchExternal.php (make sure that you are using the versions from this post), you can combine category and brand as follows:

  $_GET["q"] = "category:jeans:brand:levis";

(several users implement a virtual master / sub category hierarchy via the brand field)

Hope this helps!

Cheers,
David.