WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-cart-restore

WooCommerce Cart Selections Restore

Improve your WooCommerce shopping experience with this essential plugin. It saves your customers' complex product variation and addon selections when they add an item to the cart. If they return from the cart to make an edit, all their choices are automatically restored, preventing frustration and reducing cart abandonment. Simple, lightweight

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mdazim12/woocommerce-cart-restore/archive/refs/heads/main_.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Enhance your WooCommerce shopping experience with this essential plugin!
It saves your customers’ complex product variation and addon selections when they add an item to the cart.
If they return from the cart to make an edit, all their choices are automatically restored — preventing frustration and reducing cart abandonment.

Lightweight, simple, and effective. 🚀


💡 The Problem

By default, when a customer adds a configurable product to their WooCommerce cart and later wants to make a change, they must go back to the product page and reselect all their options from scratch.

This creates friction — especially for stores selling products with multiple variations or addons — and can lead to cart abandonment or lost sales.


✨ The Solution

This plugin enhances your WooCommerce store by temporarily saving a customer's product variation and addon selections using their browser’s localStorage.

When they click the “Edit Product” link from the cart, they are taken back to the product page — and all their previous choices are automatically re-applied, ready for quick edits or updates.

✅ No popups
✅ No page reload issues
✅ No lost data
✅ 100% local and lightweight


✨ Key Features

This plugin is designed to be both powerful and easy to use.
Here’s a complete list of what it can do:

🧭 Core User Experience

  • Seamless Selection Saving: Automatically captures all chosen product variations (like size, color, material) and addon fields when a customer adds an item to the cart.
  • Automatic Selection Restore: When a customer returns to the product page from the cart, their previous selections are instantly and automatically re-applied.
  • Reduces Cart Abandonment: Removes the frustration of re-selecting complex options.
  • Intuitive Cart Editing Link: Adds a clear and convenient “(Edit Product)” link next to product names on the cart page.

⚙️ Administrator Control & Customization

  • Integrated Settings Panel: A dedicated settings page under WooCommerce → Settings → Cart Restore for native control.
  • Enable/Disable Feature: Quickly turn the “Edit Product” functionality on or off globally.
  • Customizable Link Text: Adjust the text of the “Edit Product” link to match your store’s language, tone, or branding.

🚀 Performance & Compatibility

  • Lightweight & Efficient: Uses browser-based localStorage — no heavy scripts, no database overhead.
  • Automatic Data Cleanup: Clears stored data automatically after checkout to avoid future issues.
  • HPOS Compatible: Fully supports WooCommerce High-Performance Order Storage.
  • Theme Independent: Works seamlessly with any WooCommerce-compatible theme.

🔧 Installation

  1. Download the latest .zip file from the Releases section.
  2. In your WordPress dashboard, go to Plugins → Add New → Upload Plugin.
  3. Choose the downloaded file and click Install Now.
  4. Once installed, click Activate Plugin.
  5. Go to WooCommerce → Settings → Cart Restore to configure your options.

⚙️ How to Configure the Plugin

All settings for the WooCommerce Cart Selections Restore plugin are conveniently located within the WooCommerce settings panel for a seamless and native experience.

🪜 Step 1: Navigate to the Settings Page

  1. From your WordPress dashboard, hover over the WooCommerce menu.
  2. Click on Settings.
  3. On the WooCommerce Settings screen, you’ll see a series of tabs (General, Products, Shipping, etc.).
  4. Click the new tab labeled Cart Restore.

Your new settings tab is fully integrated with WooCommerce.


🪄 Step 2: Configure the Options

On the Cart Restore settings page, you will find the following options:

1. Enable Cart Edit Link

What it does:
This is the master switch for the plugin’s main feature.

How to use it:

  • ✅ Checked (Enabled): The “(Edit Product)” link will appear next to product names on the cart page. (Default setting)
  • 🚫 Unchecked (Disabled): The link will be hidden, and the plugin will not modify the cart page.

2. Edit Link Text

What it does:
Allows you to customize the text of the edit link displayed on the cart page.

How to use it:

  • Type your desired text into the input box.
  • Example alternatives:
    • “Change Options”
    • “Customize Selections”
    • “Anpassen” (for German stores)

If left blank, the plugin defaults to “Edit Product.”


💾 Step 3: Save Your Changes

Once you’ve configured the settings, scroll down and click Save changes.
Your new configuration will be applied instantly across your store.


❓ Frequently Asked Questions

🧩 Why aren’t selections restoring on my product page?

This is usually caused by a theme’s custom HTML structure for variations or addons.
Update the plugin’s JavaScript selectors to match your theme’s markup.


⚡ Is it compatible with caching plugins?

✅ Yes. The plugin uses client-side localStorage, so it works independently of caching or optimization systems.
Just clear your site cache once after installation.


🧹 Does it slow down my website?

Not at all. The script only runs on cart and product pages, ensuring excellent performance.


🧠 Technical Overview

  • Technology Used: Vanilla JS, WooCommerce hooks, WordPress Settings API
  • Storage Method: window.localStorage (per browser, per session)
  • Auto Cleanup: Data removed after checkout success event
  • Compatibility:
    • ✅ WooCommerce HPOS
    • ✅ Elementor & custom product templates
    • ✅ Addons frameworks like YITH and WooCommerce Product Add-Ons

📜 License

This plugin is licensed under the GPL v2 or later.


💬 Contribute

Pull requests are welcome!
If you find a bug or have a suggestion, please open an issue on GitHub.


❤️ Credits

Developed by Azim Uddin
Passionate about improving WooCommerce with smart, lightweight, and user-friendly solutions.