Re: Link to Main Category from Product Page
ooooo, this is so close to what I need!
Is there no way to specify the actual 'Main Category' the product is listed in? I ask because I have categories set out this way:
> Brands
>> Brand 1
>> Brand 2
>> Brand 3
> Category A
> Category B
> Category C
Now the 'main category' for each product is either Brand 1, Brand 2 or Brand 3, let's say Product X's main category is Brand 2 ... and Product X is also in multiple 'additional' categories, such as Category A and Category C. When the customer views Product X by navigating through Category C, I would like a link on that product which would take the customer back to Product X's main category ... in this case Brand 2 ... so they can view all other products in that main category i.e. of the same brand. You follow me?
I may be over complicating that example ... so I apologise, hehe.
So is there a variable like $main_category.id maybe? There must be a way of grabbing each products main category variable?
Thanks for your help though ... it's brought me closer!
__________________
theUKdude
X-Cart Gold - 4.1.9
Apache 2.2.10
MySQL 5.0.67
PHP 5.2.9
|