Hi, I want to know what is the best method for hiding add to cart button only on specific products without the use of any apps? Can someone please tell me how to disable the Add to cart button in specific items in the Brooklyn theme? Go to Appearance > Customizer > WooCommerce > Add to Cart and choose the options for your custom WooCommerce add to cart buttons. This new battery technology does not take power from the engine like any other battery, it will require less energy from alternator so more power will be available for drive train. There are several ways to completely hide the Add to cart button from your store. It requires 15 minutes of design time. form#5508452647065.product-form {display:none;}. Thanks. If the product page template for the theme you're using has all of the product page content, then you can simply make a duplicate of that template and remove the "Add to Cart" button from the duplicate. Answers to the most popular questions about the WordPress content management system. More you can read here, how to create an alternate templatehttps://shopify.dev/tutorials/customize-theme-create-alternate-templateshttps://www.shopify.in/partners/blog/shopify-alternate-templatesNote: In alternate template you have to remove the 'add to cart' functionality.Thanks. php file of your child theme: remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart'); Hide add to cart buttons in non-sectioned themes. How do I remove Add to Cart button on shop? From you Shopify admin, go to Online Store > Themes > Actions > Edit Code; Under Templates, click Add a new template > Create a new template for Product called alternate (or whatever you want to call it); On line 5 of this new template, change so it looks like this: % section 'product-template-alternate' %.
If your theme supports dynamic checkout, then prevent the buttons from showing by following the steps to hide dynamic checkout buttons on product pages. If you're on a paid plan and using one of the free Shopify made themes, our theme support team may also be able to assist with the changes. Although I'm sorry to hear the method I posted above won't work on the theme you're using. Ash | Social Care @ Shopify- Was my reply helpful? To figure out whether your theme supports sections, go to the theme's Edit code page. 2. {% else %} Navigate to Admin > WooCommerce > Settings > Products and click the Remove Add to Cart settings tab. php. In the box there, paste this at the bottom: a[title="View cart"] display: none; From your Shopify admin, click Online Store, and then click Themes (or press G W T). When you are ready to show your Add to cart buttons again, go back to your product-template.liquid file on the Edit HTML/CSS page, remove the {% comment %} and {% endcomment %} tags, and click Save. We have some more information here on creating new templates in your theme! Lots of helpful guides and tips. Sometimes the themes product page template will refer to a section, such as in this screenshot: In this case, you'll need to make a duplicate of the template, as well as the section referenced within the template. {% unless current_variant.available %} How you can use PayPal to accept payments and pay your Shopify bill, Optimizing Storefront for Mobile Shopping. ,