简体   繁体   English

仅在一种产品的商店页面上隐藏/删除“添加到购物车”按钮

[英]Hide/remove 'add to cart' button on shop page for one product only

Is there a way to hide or remove the ADD TO CART button on the shop page for a single product only?有没有办法仅针对单个产品隐藏或删除商店页面上的“添加到购物车”按钮? This would be in order to force the user to click to the single product page, where they are to "build" or customize their product.这是为了强制用户单击单个产品页面,他们将在其中“构建”或自定义他们的产品。

I tried the following line of code, but it didn't get the job done:我尝试了以下代码行,但没有完成工作:

#product-3093 .products-grid .button.btn-cart {
display: none;}

Any help will be greatly appreciated.任何帮助将不胜感激。

暂无
暂无

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

相关问题 仅在woocommerce商店/类别页面上隐藏“添加到购物车”按钮 - Hide 'add to cart' button ONLY on woocommerce shop/category pages 如何从woocommerce的商店页面中删除添加到购物车按钮 - How to remove add to cart button from shop page in woocommerce 隐藏价格并加入购物车按钮,在产品页面显示联系按钮 - Hide price and add to cart button, display a contact button in product page 如何在自定义页面(不是商店/产品页面)上添加到购物车按钮 Woocommerce - How to make add to cart button on custom page (not shop/product page) Woocommerce 如何在单个产品页面上隐藏添加到购物车按钮 - woocommerce - How to hide add to cart button on single product page - woocommerce 将添加到购物车按钮替换为链接到 WooCommerce 3 商店页面上的产品页面的更多信息 - Replace add to cart button with a read more linked to product page on shop pages in WooCommerce 3 Woocommerce 产品详细信息页面删除添加到购物车并放置电子邮件按钮 - Woocommerce Product details page remove add to cart and put Email Button 将产品添加到购物车后如何隐藏/删除 Woocommerce 中的添加到购物车按钮 - How to hide / remove add to cart button in Woocommerce after adding the product to the cart 如何仅在特定页面ID中使用PHP隐藏“添加到购物车”按钮? - How to hide 'Add to Cart' button with PHP only in a specific page ID? Woocommerce商店页面(类别页面模板)添加到购物车按钮行为 - Woocommerce shop page (category page template) Add to cart button behavior
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM