Here are some plugins which provide the facilities to hide “Add To Cart” buttons from the shop and single product page in woocommerce,
[ https://wordpress.org/plugins/hide-add-to-cart-button/) ]
[ https://wordpress.org/plugins/remove-add-to-cart-woocommerce/ ]
These plugins will do,
1) Hide Add to Cart button from product single page.
2) Hide Add to Cart button from category page.
3) Hide Add to Cart button from homepage and all other pages.
Also you can hide it via adding the below function in functions.php,
/*
* Override via functions.php
**/
if (!function_exists('woocommerce_template_loop_add_to_cart')) {
function woocommerce_template_loop_add_to_cart() {
global $product;
if ( ! $product->is_in_stock() || ! $product->is_purchasable() ) return;
woocommerce_get_template('loop/add-to-cart.php');
}
}
Related Posts:
- how to use wc_create_order with subscription product
- Is it possible to add custom fields to a WooCommerce attribute term? [closed]
- Add custom variable to cart content [closed]
- Woocommerce My Account Endpoint – how to get ID parameter from URL?
- Default woocommerce placeholder image
- How to add Woocomrce cart page shipping calculator to my country state list
- Custom Woocommerce image size [closed]
- Migrate WooCommerce Orders [closed]
- Button to update order status Woocommerce with WC Marketplace
- WooCommerce Subscriptions: Show monthly Price for annual Product
- WooCommerce: display text instead of raw checkbox value email
- How we can edit variations on cart page? [closed]
- new WC_Order(); Coming Back Empty
- Is there any way to find which action/hook is fired?
- WooCommerce single products images doesn’t zoom on hover and doesn’t change clicking on gallery
- Disabling the free shipping method when the cart has product/s which assigned a certain shipping class [closed]
- woocommerce_email_subject_customer_completed_order
- is_shop, is_home, is_front_page doesn’t work for woocommerce
- Woocommerce – Show random product thumbnail from specific product category
- How to add a greeting message upon logging into WordPress for certain user role
- Modify some CSS with functions if (function_exists
- Limit total quantity of products in WooCommerce group product
- WooCommerce hide unexisting variations
- How can I change the functionality of breadcrumbs?
- Variation name in $product->get_name()
- WordPress keeps moving my widgets to other widget areas
- Woo-commerce Checkout Summarized in Pop-up Card Entry Only
- How do I group product variations on cart page (Woocommerce)?
- How do I add an extra field to comment form above the submit button?
- woocommerce email template detect email recipient
- WooCommerce – buying as well as selling
- how to remove or disable woocommerce order review in checkout page?
- WordPress and WooCommerce – How many products are too many? [closed]
- WooCommerce – Add product with image via REST API
- How to get woocommerce selected variation from order object
- JWT on Woocommerce cannot work with “Customer” role user
- Woocommerce – Add HTML around Product description [closed]
- relocate woocommerce notices/messages on Cart page
- Adjust Price Display for Variable Product in Woocommerce [closed]
- Woocommerce emails from gmail not being sent
- lost password link not working for my site
- How to give each category name its own ACF background color?
- WooCommerce 4: Gallery size is too large in mobile
- How it it possible to disbale all WooCommerce scripts and styles, but keep wc-ajax=get_refreshed_fragments working? [closed]
- Woocommerce cart is not clear after logout
- WooCommerce event works in jQuery but not in JavaScript
- Filter default_content only for products
- Is there any way to pro-grammatically create product categories and assign thumbnails in PHP and WooCommerce?
- Remove Visual Editor and P tags from WooCommerce Taxonomy Descriptions [closed]
- Append woocommerce category to product title globally? [closed]
- get_posts $args won’t accept array as one of the criteria?
- Custom fields values not being created
- Adding additional text under the price via product page
- Display WooCommerce product category on shop page (on every product)
- Multisite login – registration is duplicated
- WooCommerce variable product can not add to cart using ajax after updating latest version of WooCommerce
- Create a Search Form that only Searches with WooCommerce Sale Products
- Update WooCommerce Sale Price & Date Based On Attribute Value
- One Time Access URL after purchasing subscription
- How to fetch WooCommerce products with 50% discount?
- Anonymous users can not access website
- Add quantity of variations together and show it to parent quantity field Woocommerce
- Woocommerce: How to change the attribute values per product
- How to make phone number become whatsapp link in back-end order details woocommerce
- add_post_meta add latest data from meta_value array
- WordPress | Woocommerce | use “category display type” in if statement
- select2 & selectWoo Not Loading Options
- WordPress & Woocommerce variation Price
- Adding country subdomain to an existing website like www.example.com/uk
- Move woocommerce directory
- Hide review form if user has left a comment
- Some html elements displaing in a strange order in WordPress
- Update / refresh mini cart, after custom AJAX add_to_cart event
- Would it be ok if i had only 1 main woocommerce category?
- How to get product variation price in woocommerce_checkout_create_order_line_item hook
- Woocommerce: sorting variable product
- Remove filter parameter from Link URL
- WordPress post_content gets deleted in cron after wp_update_post
- wordpress site auto redirect to another site when I enable woocommerce
- Woocommerce price in meta data
- White screen only on some woocommerce products
- How to create woocommerce products list
- add_action don’t updates theme layout when using values from the WordPress customizer
- How can I change my search form to bring up product results, not blog results
- Woocommerce: Unique price for individual basket items
- Can I get some product is virtual in Woocommerce by hook?
- Woocommerce order_complete email dont send after changing order status via sql
- Getting one specific value from get_children array
- Add text specifically to order-proceessing-email in WooCommerce
- Cannot Modify Header Information error
- add custom menu in woocommerce dashboard [closed]
- Turkish Character Problem on mailing
- WooCommerce: Order Details Table > Add Product Meta
- Override function
- How to disable schema from Wocommerce? [closed]
- Updating order meta to have a meta entry from an item in the order
- Add second price option based on payment method at cart item price
- Create WordPress account on different domain when WooCommerce order completed
- Creating a woocommerce order when a user creates an account
- I want to update shipping charge $0 for all Woocommeerce Subscription auto-renewal orders