Jump to content

How to get root category of product?


Recommended Posts

I don't know what do you mean with "main product category"...

For example: I have this categories:

 

Computers

 - Disks

   - HDD

   - SSD

 - Mouse

 - Keyboard

   - wireless

...

 

And I everytime need get the current category - Computers.

 

 

(Sorry for my bad English)

Edited by Tepster (see edit history)
Link to comment
Share on other sites

First of all, are you talking about Front Office (that customers see) or when editing your product.tpl ?

 

My guess is that you mean that customer is viewing a wireless keybord and you want them to go to the root of all computer stuff and directly to "Computers" instead of to Keyboard?

 

I had the opposite problem when I didn't have a path above to choose from. In my case the product was both in sub category and main (home) category and Home was default.  That was easy to fix however.  No tpl-files involved thou.  ;)

Link to comment
Share on other sites

First of all, are you talking about Front Office (that customers see) or when editing your product.tpl ?

 

My guess is that you mean that customer is viewing a wireless keybord and you want them to go to the root of all computer stuff and directly to "Computers" instead of to Keyboard?

 

I had the opposite problem when I didn't have a path above to choose from. In my case the product was both in sub category and main (home) category and Home was default.  That was easy to fix however.  No tpl-files involved thou.  ;)

 

Hi, you can select the parent categories when you add a product. It can be a subcategory or a home category or both! :)

Link to comment
Share on other sites

Hi, you can select the parent categories when you add a product. It can be a subcategory or a home category or both! :)

Yes, but if for the wireless product have "Home" as default category he can't go back to keybords since the path above disapere and he has to go to start page, then select computers, then select Keyboard, then select wireless and THEN finally be able to pick next keyboard model.

 

If he has Keyboard as default category however he can see the whole path above the picture and can select to go to any category he wishes by one click.

Edited by Mr.Bean_S (see edit history)
Link to comment
Share on other sites

Yes, but if for the wireless product have "Home" as default category he can't go back to keybords since the path above disapere and he has to go to start page, then select computers, then select Keyboard, then select wireless and THEN finally be able to pick next keyboard model.

 

If he has Keyboard as default category however he can see the whole path above the picture and can select to go to any category he wishes by one click.

 

That is true, the by Selecting the home as the default parent, it will not have other paths attached to it unless you added them after. 

Link to comment
Share on other sites

×
×
  • Create New...