WooCommerce - excelling eCommerce
How to Make Product Variation visible if Price is Blank? (1 post)

  1. WPMonkeyATL
    Posted 1 year ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.