Change click behaviour on disable product variation

This topic has 10 replies, 3 voices, and was last updated 8 months ago ago by Tony Rodriguez

  • Avatar: Mauro Giorgi
    M.
    Participant
    April 9, 2025 at 14:54

    Hi,
    now if I select a not available attribute appear alert with “not available” message, is possible change this behaviour and select the first available combination with this attribute?

    See private content for details…
    Thanks!

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    April 10, 2025 at 08:56

    Dear @M.,

    Thank you for reaching out.

    Please note that the product flow you are referring to is the default functionality of the WooCommerce plugin and not a feature provided by our XStore theme.

    We kindly recommend submitting your feature request or suggestion for improvement directly to the WooCommerce team via the following link: https://woocommerce.com/feature-requests/woocommerce/.

    Best regards,
    The 8Theme Team

    Avatar: Mauro Giorgi
    M.
    Participant
    April 10, 2025 at 13:54

    Hi, i’ve created custom javascript for override woocommerce functionality but the alert appear… il possible 8theme have the same code and I show this?

    Avatar: Mauro Giorgi
    M.
    Participant
    April 10, 2025 at 13:59

    The class “sten-li-disabled” is added by your theme…

    Avatar: Mauro Giorgi
    M.
    Participant
    April 10, 2025 at 16:20

    My goal si permit to select all disable attributes in order to show the first available combination with this attribute selected… if you can’t do it can you suggest a third part plugin and use it instead your Variation Swatches?

    Avatar: Mauro Giorgi
    M.
    Participant
    April 11, 2025 at 09:02

    Hi I’ve disabled your attribuites widget and installed third part plugin and all work fine but i would use the theme… how can disabile only the theme variant alert?

    Avatar: Justin
    Luca Rossi
    Support staff
    April 11, 2025 at 11:20

    Dear @M.,

    Unfortunately, all JavaScript files are minified and do not include any specific triggers that would allow you to directly disable this event.

    However, you may consider utilizing the following events to remove the sten-li-disabled class:

    $( ".variations_form" ).on( "woocommerce_variation_select_change", function () {
        // Triggered whenever variation selections are changed
    });
    
    $( ".single_variation_wrap" ).on( "show_variation", function ( event, variation ) {
        // Triggered when the user has selected all required dropdowns/attributes
        // and a final variation is displayed
    });

    We hope this information proves helpful. Should you have any further questions, please do not hesitate to contact us.

    Best regards,
    The 8Theme Team

    Avatar: Mauro Giorgi
    M.
    Participant
    April 11, 2025 at 16:36

    Hi Luca,
    the alert is triggered by sten-li-disabled class? If yes can you add code into events for disable?

    My problem is disable this alert message…

    Thanks

    Avatar: Justin
    Luca Rossi
    Support staff
    April 12, 2025 at 09:52

    Dear @M.,

    Thank you for reaching out.

    Please note that all JavaScript files are minified and cannot be edited directly, as any changes made will be lost during theme or plugin updates.

    However, if you still wish to review or modify the file, you can find it at the following path:

    /wp-content/plugins/et-core-plugin/packages/st-woo-swatches/public/js/frontend.min.js

    We hope this information is helpful. Should you have any further questions, please don’t hesitate to contact us.

    Best regards,
    The 8Theme Team

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 12, 2025 at 10:23

    Dear M.,

    Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?

    Click here to share your insights: https://themeforest.net/downloads

    Your support fuels our journey, and we appreciate it more than words can express.

    Best Regards,
    The 8Theme Team

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Change click behaviour on disable product variation’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.