• Resolved eartshipjosh

    (@eartshipjosh)


    Hi there,

    Could anyone advise me how to disable the “View Cart” button that replaces the “Add to Cart” button on a product after the “Add to Cart” button is clicked.

    I would like the “Add to Cart” button to remain there after it is clicked so it can be used multiple times without refreshing the page.

    Thanks in advance

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Please try to add the below CSS code from the APpearance > Customize > Custom CSS and check.

    a.added_to_cart.wc-forward {
        display: none !important;
    }
    
    .woocommerce ul.products li.product .button.added {
        display: inline-block !important;
    }
    Thread Starter eartshipjosh

    (@eartshipjosh)

    Works perfectly for desktop view but does not seem to work for mobile. Is there any way to resolve this?

    • This reply was modified 4 years, 2 months ago by eartshipjosh.

    try

    @media (max-width: 768px) {
    a.added_to_cart.wc-forward {
    display: none !important;
    }

    .woocommerce ul.products li.product .button.added {
    display: inline-block !important;
    }
    }

    Thread Starter eartshipjosh

    (@eartshipjosh)

    Looks like the first solution did in fact work for mobile as well, just took quite a bit longer to reflect the changes.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable “View Cart” after adding item to Cart’ is closed to new replies.