woocommerce for wordpress 删除添加到购物车按钮 [英] woocommerce for wordpress remove add to cart button

查看:60
本文介绍了woocommerce for wordpress 删除添加到购物车按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何 woocommerce 专家知道如何从商店页面中删除添加到购物车按钮?我只希望该按钮显示在各个项目页面上.

Are there any woocommerce experts out there that know how to remove the add to cart button from the shop page? I only want that button displaying on the individual item pages.

另外,我想更改标题和价格的顺序.我希望价格直接显示在图像下方,标题显示在价格下方.我应该在模板中的哪个位置更改它?

Also, I would like to change the order of the title and price. I would like price to be displayed directly below the image and the title below the price. Where in the template do I change this?

谢谢!

推荐答案

请在woocommerce插件目录中找到以下文件

Please find the following file in the woocommerce plug in directory

wp-content/plugins/woocommerce/templates/content-product.php

wp-content/plugins/woocommerce/templates/content-product.php

并删除如下所示的行

它将删除商店页面中每个产品的添加到购物车按钮,保留单个产品页面中的按钮.

It will remove the Add To Cart Button for each product in the Shop page, retaining the Button in the Single Product Page.

这篇关于woocommerce for wordpress 删除添加到购物车按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆