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
版权声明:本文标题:woocommerce offtopic - Hide add to cart when product variation has no price or is unavailable 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741302813a2371191.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论