Home Forums Themes LEVANTE WooCommerce product quickview not working with product variations

WooCommerce product quickview not working with product variations

  • Author
    Posts
  • #14027

    adig
    Participant

    The quickview post ajax javascript function runs the following code:

    jQuery('.product-lightbox form').wc_variation_form();

    Which doesn’t work with the theme since there is no element with the product-lightbox class in the page.
    Changing the function to

    jQuery('.quickview form').wc_variation_form();

    will solves this issue.

    Also, in my opinion, you might want to reconsider the “setTimeout” approach in this code. It’s too depended on the browser performance which sometimes might be a bit problematic, causing it to run too fast.

    Would have been nice if this function would have run a custom jquery event trigger to allow child themes or plugins to run their own code when the quickview is loaded.

You must be logged in to reply to this topic. Click here to login or register