• Hello – For variable products, each product variation is visible only if its price is non-blank (i.e. price is required on each product variation). Meaning, the variation is not offered for selection in the drop-down on the product details page.

    Does anybody know how to make product variations visible when price is blank? (Meaning, allow them to be visible, but without “Add to Cart” since a variation with blank price is not purchaseable)

    I looked up the function “variation_is_visible” and tried setting a filter to True on “woocommerce_variation_is_visible”. This makes the variation visible, but it has the adverse effect of also showing the “add to cart” button which fails when clicked because the variation is not purchaseable.

    Any ideas?

    Thanks in advance.

    https://wordpress.org/plugins/woocommerce/

  • The topic ‘How to Make Product Variation visible if Price is Blank?’ is closed to new replies.