*

Inquiry Sorry, no commodities matched your selection. Please choose a various combination WooCommerce *

*

I have changed dropdvery own to radio button making use of wc-variations-radio-buttons-masterThe various shade is likewise actually radio button.

The current attach product have actually 12 such variation which have product and also not various other. Some combicountry I can describe such as Silver,Matching upholstery,VC,RegularSeat and Silver,Matching upholstery,ACC,RegularSeat have actually product while Silver,Matching upholstery,Regular,RegularSeat have not product currently i want to hide Regular option from current scenario and all various other such choice which have actually not product.

I intended to show those radio button which have product if not then hide irpertinent radio button

Product link


Answer - 1
0 arrow_circle_up 0 arrow_circle_dvery own

If I understand also your question correctly, you want woocommerce to prevent users from picking particular combicountries of alternatives on variable products, unmuch less a variation through the schosen alternatives actually exists and is in stock?

This more than likely is as a result of the woocommerce_ajax_variation_threshold. If your product contains even more variations than the threshold specifies, woocommerce will wait until all variation choices have been schosen by the user prior to determining if the selected combicountry of options is valid(in stock, exists, etc). If the user has actually schosen a combination that is not valid or is not instock, you will certainly obtain the

Sorry, no assets matched your selection. Please choose a different combination

Say you had actually a product wbelow you deserve to set the adhering to attributes:

upholstery, base, arms headremainder, back

That is 5 various features.If each among those features has actually 5 alternatives, that is 25 different feasible combicountries assuming the user has actually to select all 5 alternatives. If the user does not need to choose all 5 options then there are even more feasible combicountries.

You are watching: Sorry, no products matched your selection. please choose a different combination.

So even if you just actually created 2 variations for this product, its woocommerce_ajax_variation_threshold be 25, interpretation 25 feasible options(variations).

I think by default the woocommerce_ajax_variation_threshold is set to 10.

So to fix(filter) this, set the woocommerce_ajax_variation_threshold to a higher value. If your product has 30 possible combinations(whether they actually exist or not) set the threshost to something greater than 30, choose 1111 for example.

See more: How Do You Say News In French ? How To Say News In French

You deserve to usage the snippet below in your functions.php file.

/* Increase Woobusiness Variation Threshost */ attribute wc_ajax_variation_threshold_modify( $thresorganize, $product ) $threshold = '1111'; rerevolve $threshold; add_filter( 'woocommerce_ajax_variation_threshold','wc_ajax_variation_threshold_modify', 10, 2 );
by *
Answer - 2
0
arrow_circle_up 0 arrow_circle_down