Project portfolio Browse selected work

Shopify Plus Upgrade Monthly Fee Reduction + Up to $4800 Development Fee Credit - Exclusive WesWoo Offer

Search
Pointers, buttons & menus

Undo a cart removal

Remove an item and restore it along with its subtotal.

Preparing preview

cart-remove-undo.html
<section class="fx undo-demo" lang="en" aria-label="Cart removal and undo demo">
  <h2>Your demo cart</h2>
  <div class="panel cart-line">
    <img class="product-photo" src="__WW_VISUAL_1__" alt="Sky blue graphic T-shirt">
    <div><h3>Sky tee</h3><p>$24.00</p><button type="button" data-remove>Remove item</button></div>
  </div>
  <div class="panel empty-cart" hidden><h3>Your cart is empty</h3><p>Restore the last item if you removed it by mistake.</p></div>
  <div class="row undo-row"><p class="status" role="status" data-state>1 item · $24.00</p><button type="button" data-undo hidden>Undo removal</button></div>
</section>