Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3093204
Change all gallery images, not only featured
Closed

Comments

  •  3
    Marcin started the conversation

    Hello,

    is there any chance to change the whole product gallery images, not only the featured one? 

    I got grouped product (2 variation products). When i change colour and size of 1 item, it would be great to change all the images, not just one.


    example grouped product :

    https://server167245.nazwa.pl/spawear/sklep/odziez-medyczna/damska/komplety-medyczne/komplet-medyczny-fartuch-diana-spodnie-unisex/


    Is there any hook for this?


    Thanks in advance!

  •  767
    Janilyn replied

    Hi Marcin,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  153
    Henry replied

    Please send me your website credentials (wp-admin link, username, password) then I can check and fix this issue for you.

    Best regards,
    Henry N.

  •   Marcin replied privately
  •   Marcin replied privately
  •  1,226
    Dustin replied

    Hi Marcin,

    I'm so sorry for the late reply!

    I added a snippet for you here https://www.screencast.com/t/2h2xIx46WH and it works fine now https://server167245.nazwa.pl/spawear/sklep/odziez-medyczna/damska/komplety-medyczne/komplet-medyczny-fartuch-diana-spodnie-unisex/

    ------

    Added snippet for backup:

    /* WPC Grouped Product - Fix variation gallery */
    add_action( 'wp_footer', 'woosg_variation_gallery', 99 );
    function woosg_variation_gallery() {
        ?>
        <script type="text/javascript">
          (function ($) {
            $(document).on('found_variation', function (e, t) {
              if ($(e['target']).closest('.woosg-product').length) {
                $(e['target']).closest('.variations_form').trigger('show_variation', [t]);
              }
            })
          })(jQuery)
        </script>
        <?php
    }

    Best regards,
    Dustin

  •  3
    Marcin replied

    Hello,

    Thank you so much for your help! You can consider this thread as solved.

    Best regards,

    Marcin