Home Forums Themes Support Products with many variations not change images when change attribute

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10443

    Hi all customer,

    In this topic tutorial we’ll help you resolve the issue images in the product not change when change product variation attribute.

    You should do it via child theme follow this:

    How to customize WordPress theme using Child theme

    Template structure & Overriding templates via a theme

    In this case you need to override temple:
    wp-content/themes/pricom/woocommerce/single/add-to-cart/variable.php
    by copy this file to
    wp-content/themes/pricom-child/woocommerce/single/add-to-cart/variable.php

    Please notice you need to change pricom to another theme folder like teespace,…

    After copy this file to child theme you need add this code at line 22:

    $available_variations = $product->get_available_variations(); // For large number of variation

    The code will become like this:

    Hope this helps and thanks for reading!

    ******
    Best Regards,

    HaruTheme

    • This topic was modified 1 year, 1 month ago by admin.
    • This topic was modified 1 year, 1 month ago by admin.
    • This topic was modified 1 year, 1 month ago by admin.
    • This topic was modified 1 year, 1 month ago by admin.
    #10656
    dcavr
    Support Expired

    does this work with teespace?

    #10657

    Hi,
    You can do similar with TeeSpace.
    Here is the topic with PHP settings issue:

    WC Designer Pro does not load when product have too much variations


    Hope this helps!

    ****
    Regards,
    HaruTheme

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.