• Hello,
    I am using ocean wp theme with Variation Swatches for WooCommerce plugin and woocommerce. I have a store catalog so no purchase options therefore I want to hide the “add to cart” button and the option to choose number of items to purchase. I’ve found this option in customization settings but when I hide them, the variations get removed too.

    How can I hide them without affecting the variations?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Kindly share the snapshots of the section which you want to remove and the page URL to check it.

    Thread Starter june01

    (@june01)

    Here is the link to the image -> Click Here

    I don’t need the quantity button and add to cart because there is no purchase option on this website. So, I want to completely disable them not just by CSS.

    As for the website URL, it is currently localhost only.
    For the variations I am using this plugin -> Variation Swatches for WooCommerce

    Hello,

    Add the below code in the functions.php file of your child theme, and check.

    add_filter( 'woocommerce_is_purchasable', '__return_false');

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Leave variations visible while hiding add to cart button’ is closed to new replies.