Support » Plugin: WooCommerce » get_available_variations return empty from Woocommerce 3.3.2+

  • Resolved ptravassos



    The function get_available_variations() is returning empty array from woocommerce 3.3.2.
    When i downgrade to 3.3.1 it works correctly. do you now what it could be?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Caleb Burks


    Automattic Happiness Engineer

    If you comment out these lines, do attributes start appearing again on your frontend: ?

    I’ve run into this a handful of times now, and seems to be server caching related so far.

    The problem was related with the fix commit of woocommerce 3.3.2. I solved with the filter (i don’t have prices). Thank you.

    // Fix - Set woocommerce_hide_invisible_variations to true so disabled variation attributes are hidden on product pages. WooCommerce 3.3.2
    add_filter( 'woocommerce_hide_invisible_variations', '__return_false', 10);



    is it possible to show only the variations without price and still hide the deactivated variations?

    Because sometimes we want to deactivate some variations only temporarily without deleting them.

    It is important for us to show variations without price. Because they are used for a dropdown with some shipping countries. After selecting on of the “critical” countries (variation without price = deactivated Add-to-Cart-Button), the customer is informed that shipping has to be calculated individually and he should get in contact with us via contact form.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_available_variations return empty from Woocommerce 3.3.2+’ is closed to new replies.