-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blog: “Redirect shopper to cart after adding item in WooCommerce”
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
content/blog/2024-05-18-woocommerce-redirect-after-add-to-cart/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Binary file added
BIN
+368 KB
...024-05-18-woocommerce-redirect-after-add-to-cart/redirect-after-add-to-cart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.