Home Forums WoodMart support forum Additional Button on Product Loop with Link to related Product Variation Reply To: Additional Button on Product Loop with Link to related Product Variation

#478861

DanielI2U
Participant

Hello Luke,

Thank you very much. That tip is really great. It will help us get further.

But there is still a problem.

We would need to trigger a buttonclick on the variant (div class=’wd-swatch’>variantcontent</div> after the wdShopPageInit event.

We tried it with the jQuery click() event. But unfortunately that didn’t work.
$(“.tax-product_cat .wd-swatches-product .wd-swatch:first-child”).click();
(The CSS path is correct)

Is there another function that triggers the click on a variant (swatch)?

Thanks a lot.

Kind regards,
Daniel