PrestaShop Checkout & Payment

Change Product Variant in Cart for PrestaShop 8 & 9: Edit Size and Color Without Removing the Product

Customers change size or color without leaving the cart.

In PrestaShop, a customer who wants an M instead of an S has to remove the line, find the product page again, pick the right size and add it to the cart once more. Some customers give up at that point. With this module, a "Change" button on each line opens a window with the sizes, color swatches, combination image, price and stock. One click on "Update cart" and the line is replaced, in the same place, with the same quantity.

At a glance
  • "Change" button on each cart line, or dropdown lists right in the line
  • Color swatches, size buttons, image, price and price difference per combination
  • Stock and minimum quantity checked server side before the swap
  • Quantity, delivery address and line position kept
  • Change history and share of edited carts that became orders
PrestaShop 8 & 9 Cart No override 8 languages
  • 30-day refund
  • 12 months updates
  • 24h support
www.datafirefly.com/en/
Change Product Variant in Cart for PrestaShop 8 & 9: Edit Size and Color Without Removing the Product
v1.0.0 · updated 2026-10-13
What it does

The short version.

01

Customers fix their size without starting over

The Change button opens a window with the product attribute groups, in your catalog order: swatches for colors (textures included), buttons for sizes, a dropdown for groups with more than 8 values. The image of the selected combination shows at the top, with its price and the difference from the current line. On mobile, the window slides up from the bottom of the screen.

02

No impossible combination

If the customer picks Blue while M Blue does not exist, the module switches to the existing combination that keeps the most current attributes, an orderable one first. Values without stock are greyed out or hidden, depending on your setting. PrestaShop stock management and out of stock ordering are respected.

03

A swap checked server side

Before touching the cart, the module checks that the combination belongs to the product and the shop, that stock covers the quantity and that the minimum quantity is reached. It adds the new combination before removing the old one, and rolls back if something fails. If the chosen combination is already in the cart, quantities are merged.

04

The cart refreshes as usual

After the swap, the module fires the native PrestaShop updateCart event: the line, totals, cart rules and header mini cart update without a reload. If the theme does not react to this event, the page reloads to show the right cart.

The long version

Everything you'd want to know before you install.

A detailed look at how Change Product Variant in Cart for PrestaShop 8 & 9: Edit Size and Color Without Removing the Product works, why we built it the way we did, and the thinking behind the features above.

§ 01

Why the PrestaShop cart stalls on a simple size change

The native cart lets customers change the quantity or remove a line, nothing more. To go from an S to an M, the customer has to remove the product, go back to its page, find the right combination and add it again. On mobile, that is four or five screens for a one second fix. This module adds the missing step: change the combination where the customer already is.

§ 02

Two layouts depending on your shop

The window mode suits fashion, footwear or home decor shops: the color is picked on a swatch and the image follows the selection. The dropdown mode suits technical or B2B catalogs, where the customer wants to switch a reference in one move from the line. In that mode, the theme's native attribute rows are hidden to avoid showing them twice.

§ 03

A swap that follows your shop rules

The module goes through the PrestaShop cart methods (updateQty and deleteProduct), not through direct queries on cart lines. Automatic cart rules, specific prices and minimum quantities apply as they do for a normal add to cart. Lines tied to a gift cart rule are refused with a message, so a running offer is not broken.

§ 04

Measure what the feature brings

Each change is logged with the cart, the product, the starting combination and the chosen one. The configuration page shows the number of changes over 30 days, the number of carts concerned, how many became orders, the most changed products and the last 20 changes. A product often changed from S to M points to a size guide worth reviewing.

€89.00
One-time · 12 months updates
Read the docs
  • Unlimited dev & staging installs
  • Source code included
  • 30-day refund
  • 24h support · EN / FR
5.0/5 19 reviews