Home Forums WoodMart support forum product variations

product variations

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #275450

    Creative Idea
    Participant

    Hi, we have a problem with product variations.
    Combining the attributes between size and color, up to 30 variations is all right. Starting from variation number 31, the color previews disappear and the images in the gallery do not correspond to the color of the product.
    Attached two screens. In one the product sheet is displayed correctly (up to the thirtieth variation), in another how the error occurs (from the thirty-first variation onwards).
    We await a resolution of the problem.
    Thank you

    Attachments:
    You must be logged in to view attached files.
    #275668

    Hello,

    Please add this code to the functions.php of the child theme:

    function wd_wc_ajax_variation_threshold( $qty, $product ) {
        return 150;
    }
    add_filter( 'woocommerce_ajax_variation_threshold', 'wd_wc_ajax_variation_threshold', 10, 2 );

    Best Regards

    #289071

    Creative Idea
    Participant

    Good morning,
    by entering the code indicated everything worked perfectly.
    For a few days the problem has come up again despite the code being correctly entered as indicated by you.
    How to solve?

    #289365

    Hello,

    You do not need this code anymore. Please find this option in the Theme Settings: https://prnt.sc/12gkn4x

    You can find this option on the Theme Settings > Product page.

    Best Regards

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