Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #670589

    Hi
    Is there a way to hide or “delete” Add to Cart button in products or individual products without hiding price or variations as i only need to use woocomerce as a catalog and not shopping cart for now.
    It doesn’t matter if user is logged or not as its just a catalog. Also i have found previous post about this but if product has variations it hide it too,
    Lest’s say i have product Whiskey that i sell in Bottle/Quarter/Shot, so i have variation of product Whiskey with different prices when i applied the code i have found in other post those variations disappeared it only displays the main product and not it variations

    Thank you very mucy

    • This topic was modified 8 years, 3 months ago by hdpcr.
    #671966

    Hey hdpcr,

    Please add following code to functions.php file in Appearance > Editor

    
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    

    Best regards,
    Yigit

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.