• Resolved pixelarbeit

    (@pixelarbeit)


    First: Thanks for this great plugin. It really integrates seamlessly into the woocommerce backend.

    I have an issue on the frontend. When selecting a default variation for the product, the variation images are not loaded. Instead it’s showing the default product images. The variaton images are only shown after switching the variation.

    A simple jQuery('#pa_color').trigger('change'); fixes the issue for me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I second this.
    Also, WooCommerce deep linking failed to trigger variation image change with this plugin.

    Thread Starter pixelarbeit

    (@pixelarbeit)

    Quick update. My full solution looks like this:

    
    $(document).on('woo_variation_default_gallery_loaded', showDefaultVariationGallery);
    function showDefaultVariationGallery() {
        setTimeout(() => {
            $('#pa_farbe').trigger('change');
        }, 400);
    }
    
    • This reply was modified 5 years, 6 months ago by pixelarbeit.

    Where do you put these code?

    Thread Starter pixelarbeit

    (@pixelarbeit)

    Somewhere in your JS file or in a script tag in your footer. This only works, if you’re using the same jQuery instance as the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images are not loading with default variation’ is closed to new replies.