Skip to content

What a Switch Keeps in the Cart

A switch replaces one option with another on the same line. Everything else about the line stays as it was. Each case on this page was performed on the demo store.

A line of three Black M tees switched to Black XL stays a line of three. The popup shows the difference per item, as +$4.00 each, so the cart goes up by $12.00.

The popup for a line of three, showing +$4.00 each

The line also keeps its place in the cart, so a long cart does not reshuffle.

Product add-ons, gift notes, engraving text and the like are saved on the cart line by their own plugins. They move to the new option with it. On the demo, a tee carried a gift note.

A White M tee in the cart with Gift note: Happy birthday, Sam

After a switch to Black M, the note is still there.

The same line after the switch, now Black, M, with the gift note kept

If the cart already has a line with the chosen option, and the same add-on data, the two lines join into one. The demo cart held two Black M tees and one White M tee.

The cart with two Black M tees and one White M tee on separate lines

The White M tee’s switcher was opened and Black picked. The popup does not warn about the join, because nothing is lost by it.

The popup for the White M tee with Black and M picked

Pressing Update item left one line of three.

The cart with one line of three Black M tees

A switch that the store cannot honour is refused, with the reason, and the cart stays as it was:

  • Stock: “Sorry, only 3 of this option are in stock.” The check counts the line’s quantity plus the same option in any other line.
  • Sold one per order: “This option can only be bought once per order and is already in your cart.”
  • A combination that does not exist: It cannot be picked. Its button is crossed out.

The popup with “This option can only be bought once per order and is already in your cart.”

For the sold one per order case, the tee had Sold individually ticked for the test. White M and Black M were in the cart, and one was switched onto the other.

  • The totals, shipping and tax are worked out again.
  • The shopper’s checkout details stay filled in. On the demo, a name and email typed at checkout were still there after a switch from the order summary.