Hi there,
For ease of reference, this is the page: https://test4.bestia.hu/termekek/
I’m trying to create a button that triggers an accordion for each product, which displays the product information.
Thing is, I tried this with multiple methods but failed so far, so I would like to ask for help:
Version A: (clicking on the red button - több információ ) I created a toggle hash, which when clicked, opens the accordion. This works great, except for two things:
- It opens up ALL the accordions on the page, not just the given products. Is this fixable?
- Clicking the Toggle hash again, does not close the given modal. Is this fixable?
Version B: It’s basically the same, but with javascript. If clicked, remove display:none method. The issue here is that I can’t target the specific product in the loop. Again, it removes display:none from all products. For this I would need a class that gets incremented with each product, but I’m not sure this is available in PRO.
Whichever is easier to fix would be helpful.
Thanks!