Skip to content

Commit

Permalink
Blog: “Redirect shopper to cart after adding item in WooCommerce”
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjago committed May 20, 2024
1 parent 7bcd81f commit 85199c9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
+++
title = 'Redirect shopper to cart after adding item in WooCommerce'
slug = 'woocommerce-redirect-after-add-to-cart'
summary = 'In WooCommerce, you can take the shopper to the cart page after they add an item to their cart. This short tutorial shows you how to enable this feature in WooCommerce.'
date = 2024-05-18T16:36:10-05:00
draft = false
+++

{{< rawhtml >}}
<div class="rounded-lg px-8 py-8 bg-[#9D6095E3] text-gray-50 text-lg">
<h2 class="text-gray-50" style="margin-top: 0; margin-bottom: 0.6rem;">Summary</h2>
<p style="margin-bottom: 0;">In WooCommerce, you can take the shopper to the cart page after they add an item to their cart. This short tutorial shows you how to enable this feature in WooCommerce.</p>
</div>
{{< /rawhtml >}}

***

This is a setting that is part of WooCommerce, so no custom code or plugins are required. Follow the steps below to enable this feature in WooCommerce.

1. From the WordPress dashboard, navigate to **WooCommerce → Settings** in the left sidebar.
2. Click on the “**Products**” tab.
3. Near the top, next to “**Add to cart behaviour**”, you’ll see a checkbox labeled “**Redirect to the cart page after successful addition**”. Check the box to enable the feature.
4. Scroll to the bottom and click “**Save changes**”.

![Screenshot of the WooCommerce settings, showing the Products tab where there is a checkbox to redirect the shopper to the cart after they add an item, with arrows pointing to the side navigation and tab to show how to navigate there, and one arrow pointing to the checkbox.](/blog/woocommerce-redirect-after-add-to-cart/redirect-after-add-to-cart.png)

After turning this on, when a shopper adds an item to the cart from either the shop page or the product page, they’ll be taken to the cart page after the item is added.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 85199c9

Please sign in to comment.