Product with multiple categories

  • Posts: 6
  • Thank you received: 0
8 years 4 weeks ago #269770

-- HikaShop version -- : starter 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.3
-- Browser(s) name and version -- : chrome,firefox

I have one product with 3 categories sub cat b from cat 1, sub cat b from cat 2 and sub cat b from cat 2
cat 1
sub cat a
sub cat b
sub cat c

cat 2
sub cat a
sub cat b
sub cat c

cat 3
sub cat a
sub cat b
sub cat c

when i click on cat 1 then sub cat b and then the product having 3 categories it should expand sub categories of cat 1 but it expands all categories related to that product....
andwhen i click on cat 2 then sub cat b and then the product having 3 categories it should expand sub categories of cat 2 but it expands all categories related to that product....

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 4 weeks ago #269776

Hello,

I'm sorry but it is really difficult to understand your message.
Please try using screenshots in order to illustrate your issue.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: ehtasham

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
8 years 4 weeks ago #269851



This product have 2 categories lighting and horns in fj40 and lighting and horns in fj45
This product should show only lighting and horns in fj40 but it also showing lighting and horns in fj45

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 4 weeks ago #269853

Hi,

Well, that's normal as far as I know. The module listing the categories doesn't know from where the user came to the product page. It just knows the id of the product and then load its categories and opens the tree based on that.
If you want to change that, you need to turn off the "simplified breacrumbs" setting of the HikaShop configuration which will then add an extra "category_pathway" parameter to the product page URLs. And then you need to modify the file "listing_list" of the view "category" via the menu Display>Views in order to take that parameter into account when openning the tree of the categories.

The following user(s) said Thank You: ehtasham

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
8 years 3 weeks ago #270134

what code should i write in file "listing_list" of the view "category" via the menu Display>Views. I am not good in coding. plz help me out

Please Log in or Create an account to join the conversation.

  • Posts: 83986
  • Thank you received: 13603
  • MODERATOR
8 years 3 weeks ago #270147

Please contact a developer to help you.
You're using the Starter edition. Please understand that we can't provide custom coding in such case.

The following user(s) said Thank You: ehtasham

Please Log in or Create an account to join the conversation.

Time to create page: 0.219 seconds
Powered by Kunena Forum