Jump to content

Active combination according choosen category


lipo999

Recommended Posts

Dears all,

 

maybe Im looking bad for this issue, maybe not. Im looking for this:

 

I have product with combination 1, 2 and 3. 

And Categories: 1, 2 and 3. 

 

Product is in all these categories. 

 

When I click to category 2, I want automaticly selected combiantion 2 on product detail. 

When I click to category 1, I want automaticly seleted combination 1 on product detail.

 

So I need somehow connected combination with categories. 

 

Is there any module for this? Or how Can I do it? 

 

Thank you for all posts.

 

Link to comment
Share on other sites

I don't think there is any module that does it.
You will likely have to hardcode the combinations ids in product.js.
However, it also needs to account for the category you previously clicked from.
The point is, it's the very same product, so there is no clean way to distinguish between categories, unless you hardcode ids.

You would have to parse the referrer's url (the category you came from), extract the category rewrite/id, pass it to the javascript code, and use it in product.js to trigger the correct combination.

It's hard, good luck :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...