Open Cart Modal on "Add to cart" button click - Woocommerce

Hi Guys,
Is it possible to make the modal cart open instead of redirecting the users to the cart page?

I’m using the Pro theme.

Hello There,

Thanks for posting in! Regretfully it is not possible to make the modal cart open instead of redirecting the users to the cart page. You can disable the add to cart redirection and enable the AJAX add to cart button instead. Simply go to WooCommerce > Settings > Products > General.

For more details about the Add to cart redirection and how you can disable it, please check this out:

Sorry to hear that. I’m already familiar with all the other functionality in Woocommerce.

Isn’t it possible to “deep-link” to open the modal?
Something like <a href="/shop/#open-cart-modal/">Add to cart</a>

Hello @VillageVisuals

I’m afraid to tell that this isn’t possible at the moment, I found this plugin however, which create a custom URL links to an already made cart, not sure if this would be helpful in this case or not, but it’s worth to give it a try:

Thanks.

1 Like

Hi Alaa,

Thanks for the quick reply.
Unfortunately it’s not what we desire.

We have seen plenty of themes out there that offer this. Would it help if we sent you a link to a shop with the functionality?

Hi,

Even if it helps, It could only be possible with custom development, but this would be outside the scope of support we can offer.

This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.