lipo999 Posted August 20, 2017 Share Posted August 20, 2017 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 More sharing options...
NemoPS Posted August 21, 2017 Share Posted August 21, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now