fbpx
Enjoy Year-End Sale: 50% Off All Plugins! Coupon Code: NewYear2025

Trigger Variation once page has completed loading

adam taylor

Hello.

I am testing you Variation swatch at the moment. Is it possible to trigger the selecting of a variation via js once the page has loaded.

Our site has custom variation detail that is not displayed until the variation is clicked. I am looking for a way to simulate the clicking of the first available variation so the custom data is displayed. The custom data asks for the postcode to be entered and displays the stock availability of the product.

Example link

https://wroes.smart-store.co.uk/product/waterproof-beanie/

then click on of the available sizes or colours for the rest of the window to be displayed.

I hope this question makes sense, and thank you for any help you can offer on this.

 

Adam

 

Tanvirul Haque

Hello adam taylor,

Yes we have a js trigger wvs-selected-item

Thanks