WooCommerce |禁用购物车页面上产品的超链接 [英] Woocommerce | Disable hyperlink to product on cart page
本文介绍了WooCommerce |禁用购物车页面上产品的超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何禁用购物车页面上产品图片的超链接.
How can I disable the hyperlink of the product image on the cart page.
见下面的屏幕截图,以红色突出显示.
See below screenshot, highlighted in red.
请帮忙.谢谢.
推荐答案
将以下过滤器添加到您的functions.php
Add the following filter to your functions.php
add_filter('woocommerce_cart_item_permalink','__return_false');
它将从您的购物车页面中删除产品链接.希望这会有所帮助.
It will remove the product links from your cart page. Hope this helps.
这篇关于WooCommerce |禁用购物车页面上产品的超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文