• Resolved Alisey

    (@alisey)


    Assume product has three attributes. A, B, C => A=1,2,3 B=4,5,6, C=7,8,9 .

    when I select a variable A1 in product page, I see the list of all variables in B and C dropdown. So if I haven’t created a variations for A1,B4,C7 combination, when I select A1 in product page, I shouldn’t see B4 and C7 but they are listed anyway.

    Simply in product page attributes don’t get filtered by user selection. There is always a constant list of all variations and if user selects a combination of attributes that does not have a defined variation, will see an error message :
    “Sorry, no products matched your selection. Please choose a different combination.”

    Now imagine this for a product with tens of attributes. How many times user should try different combinations until one of them will match?!

    • This topic was modified 4 years, 5 months ago by Alisey.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @alisey,

    When a variable product has a large number of attributes, WooCommerce will not filter the list of attributes so that only viable ones are offered. There is a filter that can be used to increase the number of variations present before this happens.

    You can add this snippet to your theme’s functions.php file or by using the Code Snippets plugin.

    
    function ijab_wc_variations_limit( $limit ) {
    
        $limit = 100;
    
        return $limit;
    
    }
    add_filter( 'woocommerce_rest_batch_items_limit', 'ijab_wc_variations_limit' );
    

    That will increase the number of variations that are allowed before this happens. Make sure to test this. Variations can use a lot of server resources so make sure this doesn’t take too long to load the products.

    Cheers

    Hi @alisey,

    It’s been a while since we heard from you, so I’m marking this thread resolved. Hopefully, you’ve been able to resolve this, but if you haven’t, please let open up a new topic and we’ll be happy to help out.

    Take care

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide unrelated variations’ is closed to new replies.