• Resolved Brad Dalton

    (@wordpresssites)


    I need the variation option value in the drop down to display and change when each variation thumbnail is clicked. Is this included or do you have some jquery for this

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support fizanzvai

    (@fizanzvai)

    Hi,

    Thanks for reaching out to us. Unfortunately, this feature is not currently available. So, I am adding it as a feature request.

    Thanks

    Thread Starter Brad Dalton

    (@wordpresssites)

    Do you have any jQuery for this

    Plugin Support fizanzvai

    (@fizanzvai)

    Hi,

    Thanks for your interest. Unfortunately, we have no snippet for this. We are sorry for this inconvenience.

    Thanks

    Thread Starter Brad Dalton

    (@wordpresssites)

    Its o.k, i figured it out.

    Plugin Support fizanzvai

    (@fizanzvai)

    Hi,

    Glad to know you figured it out. You can also share the snippet here. It will help others if they need the same behavior on their site.

    Thanks in advance.

    Thread Starter Brad Dalton

    (@wordpresssites)

    I coded the variations image slider myself so it doesn’t require your plugin. I could make it work with your plugin if there’s a PHP filter to modify the output of the variation thumbnails. Without looking into your plugin code, would you be able to provide the correct filter to use OR a line number in a file?

    Plugin Support fizanzvai

    (@fizanzvai)

    Hi,

    You can follow the following steps to change the output of Gallery plugin:

    1. Create a folder (For example: woocommerce) inside the theme root area. If a folder “woocommerce” already exists skip this step.

    2. Copy the edited product-images.php and paste it inside the newly created folder ‘woocommerce’.

    3. Add the below snippet inside the theme’s functions.php file:

    function edit_wvg_gallery_template($template, $template_name, $old_template){
    ???if ( $template_name == 'single-product/product-image.php' ) {
    ??????$template = get_theme_file_path() . '/woocommerce/product-images.php';
    ???}
    ???return $template;
    }
    
    add_filter('woo_variation_gallery_gallery_template_override_location', 'edit_wvg_gallery_template', 40, 3);

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change Variation Attribute Option Value on Thumbnail Image Click’ is closed to new replies.