• Resolved jewelsinmarketing

    (@jewelsinmarketing)


    The vacation mode works great, thanks. But for any product that has a variation, the Add to Cart button still shows on the screen. For a regular product, the add to cart is not there, which is how I would like it to work. Any way to ‘turn off’ the add to cart button for the variations as well as a regular product?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mahdi Yazdani

    (@mahdiyazdani)

    This is mainly because the theme author of yours has been overridden WooCommerce template files and modified the default order of the hooks in the single product view page — Consider switching to the “Storefront” theme.

    Thread Starter jewelsinmarketing

    (@jewelsinmarketing)

    Thanks so much for the suggestion. Unfortunately it didn’t work. I downloaded the most recent version of storefront and made sure all my plugins and wordpress was updated as well. Unfortunately the add to cart still shows for the variation products.

    Plugin Author Mahdi Yazdani

    (@mahdiyazdani)

    Hey @jewelsinmarketing

    The following CSS snippet will help:

    
    #woo-store-vacation + .product .cart {
    	display: none;
    }
    

    Also, it is worth mentioning that whether the add to cart button is present on the variable products page or not, the plugin won’t allow any product to be purchased during the vacation.

    • This reply was modified 4 years, 5 months ago by Mahdi Yazdani.
    Thread Starter jewelsinmarketing

    (@jewelsinmarketing)

    Great suggestion! It worked just perfectly. Sometimes we miss the ‘easy’ solution to our problems. yes I did realize, and appreciated, that the customer couldn’t purchase even though the add to cart button was showing. But the client didn’t want to even see it on the page. This is a great and easy solution. thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add to cart is showing for Variations in Woocommerce’ is closed to new replies.