Categories: Magento 2 Tutorials

How to Redirect to Shopping Cart in Magento 2

At a Magento 2 store, the visitors add products to the cart by clicking the Add to Cart button. Once they are done, they need to click the cart icon at the top of the page to go to the shopping cart page. In some cases, store owners wish to send the visitors directly to the shopping cart page when the Add to Cart button is clicked. This tutorial offers a simple solution to this requirement. Note: Sending the visitor to the shopping cart page in response to the click on the Add to Cart button is not a recommended Magento design practice. Only use it if the circumstances of the store demand this action. Open the store’s Admin Panel and navigate to STORES → Configuration: Next, click Checkout under the Sales tab: Go to the Shopping Cart section and select Yes for the After Adding a Product Redirect to Shopping Cart option: Finally, click the Save Config at the top of the configuration page

Testing the Process

To test the functionality, go to any product page and click the Add to Cart button. You will be redirected to the Shopping Cart:

Wrapping Up

I hope that you could now redirect the users to the shopping cart page after they click the Add to Cart button. Remember that it is not a recommended design practice. If you still have any confusion related to this tutorial, just leave a comment below!  
Syed Muneeb Ul Hasan

Syed Muneeb Ul Hasan is an expert in PHP and Magento, he prefers to educate users in implementing and learning Magento. When not working, he loves to watch cricket.

Share
Published by
Syed Muneeb Ul Hasan

Recent Posts

Building Employee Trust and Dedication – A Complete Guide

In the highly competitive modern workplace, trust, and employee loyalty are crucial factors for long-term… Read More

3 months ago

12 Winning Strategies for Small Businesses Marketing

In the ever-evolving world of small business developing and implementing effective marketing strategies is critical to… Read More

3 months ago

Top 10 App Development Companies in Dubai 2024

With one of the highest internet penetration rates, the UAE has set out to revolutionize… Read More

3 months ago

Transforming Industries: How Amazons GPT44X is Revolutionizing AI Technology

Artificial Intelligence (AI) has been continually evolving, leading to remarkable advancements in various industries. Among… Read More

8 months ago

Top Magento 2 Extensions for 2023

Extensions, extensions and lots of extensions. We all love extensions, don’t we? After all, extensions… Read More

11 months ago

Unleashing the Power of Software Testing: Cooperating with a Testing Firm

Software quality is crucial to a firm's success across industries in the quickly changing digital… Read More

11 months ago