• Resolved swpshadley

    (@swpshadley)


    Hello,

    Currently, if a variation on a product has no price, the drop down menus to select that variation don’t expand when you click them. We would like customers to be able to see the product options available without displaying a price. Anyone have an idea on how to fix this?

    Big thank you for any feedback.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter swpshadley

    (@swpshadley)

    Just found a solution on GitHub for anyone who has this problem in the future, https://github.com/woothemes/woocommerce/issues/5137

    Here’s the code…

    /* Display Variation Selections on variable products with empty price */
    add_filter(‘woocommerce_variation_is_visible’, ‘product_variation_always_shown’, 10, 2);
    function product_variation_always_shown($is_visible, $id){
    return true;
    }

    Works perfectly. Thank’s a million MadSpaniard!!!

    Thread Starter swpshadley

    (@swpshadley)

    Resolved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show drop downs on variation products with no prices Woocommerce’ is closed to new replies.