Actually I want when user comes to the page then variation is auto selected and user direct able to click on Add to cart button and product added in cart…..
But right now add to cart button is disabled and no variation is selected Through jquery i have added li class is active but still its not working
I understand that the “Add to cart” button is not working as expected, and no variation is auto-selected when visiting the single product page, is this correct?
If yes, it appears that this is working as expected on my end when visiting your site, and the “Add to cart” button seems to be functioning as it should, as seen in the screenshot below:
Have you managed to resolve this since creating the topic, or are you still experiencing this issue?
If you are not seeing the same results as me, please could you try clearing your browser cache and check if this makes any difference.
variations auto select not working in elementor
Should the issue persist, and you have identified the culprit as Elementor, please can you reach out to their plugin support since this forum is dedicated to support related to WooCommerce core.
thanks for you replying. yes its working on single page but not working on homepage. https://demoalchimie.alchimiefragrances.com/ when you visit homepage then 4 products are shown … That products variations not selected and add to cart also not enabled without select variation
Thanks for sharing further information about your issue here.
I checked your homepage and can confirm the issue as you can see below:
As a first step, can you please share how the automatic selection of variation is being added to your site as this is not part of the core functions of WooCommerce?
If this was added thru a third-party plugin or a custom code, it would be best to reach out to the developers for further assistance here.