简体   繁体   English

将免费的产品添加到购物车

[英]Add Woocommerce free product to cart

I am running a Woocommerce store which is also offer free product (_regular_price = 0). 我正在经营一家Woocommerce商店,该商店也提供免费产品(_regular_price = 0)。 Customer have to choose quantity and add it to cart and place order to receive the product. 客户必须选择数量并将其添加到购物车并下订单才能接收产品。 But it isn't how Woocommerce works, it hide add to cart link of all products with price = 0. and doesn't display them in cart page. 但这不是Woocommerce的工作方式,它隐藏了价格为0的所有产品的添加到购物车链接。并且不将其显示在购物车页面中。 Is there any hook or solution to solve this problem? 有没有解决这个问题的办法? thank you 谢谢

If you dont want customer should buy any specific product then inside product setting there is option where you can restrict purchase of product to specific tgpe of user say customer, editor, author. 如果您不希望客户购买任何特定的产品,则在产品设置中可以选择将购买的产品限制为用户,客户,编辑者,作者的特定tgpe。

product setting link 产品设置链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM