admin管理员组

文章数量:1277885

I am building a site for a client and for a lot of their products, instead of being able to buy them they want an "Enquire now" button. This is an additional button that opens a popup, which I know how to create. What I am stuck with is the default behaviour of woocommerce.

I have variable products and most of the variations have no price, but the add to cart button and the quantity selector still shows up (even if you land on the product and no variation is selected). What I want to achieve is that it is hidden by default when you land on a variable product and you have no variations selected, and also is hidden if you select a variation that has no price or unavailable.

Is there a way I can do these? Some hooks for the initial load and for javascript (for the update).

本文标签: woocommerce offtopicHide add to cart when product variation has no price or is unavailable