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

This topic has 6 replies, 2 voices, and was last updated 1 years, 1 months ago ago by Rose Tyler

  • Avatar: Steel
    Steel
    Participant
    October 20, 2023 at 10:13

    I have a variable product (38 variations) for *WEBSITE/PAGE*, but the user is ABLE to select a product variation which has not been configured as a variation combination. Then the following message shows: “Sorry, no products matched your selection. Please choose a different combination.”. I want however, that the user is not ABLE to even select product variation which I have not configured / exists.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 20, 2023 at 11:06

    Hello, Steel,

    Thank you for contacting us and for using XStore.

    Please try to activate “Hide out of stock items from the catalog” option in WooCommerce > Settings > Products > Inventory.

    Kind Regards,
    8theme team

    Avatar: Steel
    Steel
    Participant
    October 20, 2023 at 11:26

    Hello,

    I have done that with no results.

    Kind regards,
    Leon

    Avatar: Steel
    Steel
    Participant
    October 20, 2023 at 11:28
    Avatar: Steel
    Steel
    Participant
    October 20, 2023 at 11:52

    I have found the problem and solution.

    Problem: If there are more than 30 variations, the dropdowns will be static and will display all attributes. This probably is due to the woocommerce_ajax_variation_threshold. If your product contains more variations than the threshold specifies, woocommerce will wait until all variation options have been selected by the user before determining if the selected combination of options is valid(in stock, exists, etc). If the user has selected a combination that is not valid or is not instock, you will get the “Sorry, no products matched your selection. Please choose a different combination”

    Solution:

    Adding the following at /wp-admin/theme-editor.php?file=functions.php&theme=xstore-child:

    /* Increase Woocommerce Variation Threshold */
    function wc_ajax_variation_threshold_modify( $threshold, $product ){
    $threshold = ‘1111’;
    return $threshold;
    }
    add_filter( ‘woocommerce_ajax_variation_threshold’,’wc_ajax_variation_threshold_modify’, 10, 2 );

    Used sources:
    https://stackoverflow.com/questions/39343244/sorry-no-products-matched-your-selection-please-choose-a-different-combination
    https://woocommerce.com/document/change-limit-on-number-of-variations-for-dynamic-variable-product-dropdowns/

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 20, 2023 at 14:22

    Hello, Steel,

    Thank you for letting us know!

    Kind Regards,
    8theme team

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Sorry, no products matched your selection. Please choose a different combination.’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.