WordPress-Woocommerece删除“添加到购物车"信息 [英] Wordpress - Woocommerece remove "Added to Cart" message
本文介绍了WordPress-Woocommerece删除“添加到购物车"信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在将商品添加到购物车后,我希望删除显示产品已成功添加到购物车"的措辞和区域.我只希望什么都没有,没有消息,没有消息的空间.
I'm looking to remove the wording and area that says "Product Successfully Added to Cart" after I add an item to the cart. I just want there to be nothing, no message and no space for the message.
这里是网站: http://www.tinytreasurehunts.com 该代码在woocommerece-functions.php
Here's the site: http://www.tinytreasurehunts.com The code is in woocommerece-functions.php
有什么想法吗?
推荐答案
使用以下方法之一:
旧版本
$woocommerce->clear_messages();
版本2.3
wc_clear_notices();
这篇关于WordPress-Woocommerece删除“添加到购物车"信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文