WoWoocommerce variations not filtering out invalid combinations

Hi There

I am using Betheme for my website. There are variable products created using woocommerce. The problem is when I select an option, it displays all unrelated variations in next select box. It should show only related variations and filter out options based on the previous option selected.

I switched to standard Twentry Twenty theme and it variations work perfectly fine. It don't work on betheme.

Product page url https://elitedriveaustralia.com.au/product/elitedrive-power-module-toyota-hilux

I used this code in child theme funtions.php but it did not work.

/* 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 );


I faced similar issue last month on another theme and this code above worked perfectly fine. but no luck with Betheme. please can you help.

Regards,

Comments

  • Hi,

    We do not provide help with the theme files modifications, so, unfortunately, I cannot help you with it.

    However, we have this feature (hiding unrelated variations) on our to-do list, so it should be available soon, but I cannot tell the estimated time.


    Best regards

  • Hello

    First of all its not a "Feature" that you need to put in the theme. Its called a bug, that you need to fix. By default, wordpress variable products hide unrelated variations, that is how variations work. My entire setup works fine with other themes. However when I switch to Betheme, the STANDARD woocommerce variable products start showing entire list of variations, while it is not supposed to do so.

    Please have a courage to fix things when you sell a product with 6 months free support. I am sorry but this was not the reply anyone would expect. Or it could be my fault, i was not able to explian things correctly.

    Let me try again.

    In the screenshot below, First part with Betheme is incorrect. Only Power option available for 2494>192> selection is 88. However it is displaying all other variations for 2393 etc. Second part with default Twenty Twenty Two is correct. I only swtiched the theme. No change was made, except the the theme switch.


  • Yes, I understood what you referred to in the first message, and I might falsely call it a feature, not a bug.

    However, as I said in the previous message, we are aware of it, and soon it should be resolved.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.