← All notes

HBN Notes / Shopify guide

What should happen to gift wrap when a Shopify cart changes?

Test gift wrapping when shoppers change quantities or remove items. Follow the wrapping charge and gift message through the cart drawer, cart page, and checkout.

Published

Imagine a shopper adds two mugs, chooses a $3 gift box for each mug, and writes “Happy birthday” for the wrapping selection. They also add an unwrapped tea tin. When the shopper changes the mug quantity to one, can they see which gift box remains, what it costs, and where the message went?

Attach wrapping to the product the shopper chose

In HBN Gift Wrap, we add the selected packaging as a Shopify cart line linked to the product line. This gives a paid box its own price and lets Shopify remove the linked packaging when the shopper removes the mug line. The tea tin stays in the cart. Shopify documents this behavior for nested cart lines.

Reducing the quantity is a separate test. The mug line still exists, so check how many boxes remain and confirm the surviving wrapping still carries the message. In this example, one mug can use one box, so the expected wrapping charge is $3 before discounts and tax. If a shopper increases the mug quantity, check whether the storefront keeps the original wrapping selection or clearly shows any change to the quantity and price.

Run the same edits in the drawer and on the cart page

  1. Add the two wrapped mugs and the unwrapped tea tin to an empty cart. Check that the two $3 boxes and the sample gift message are associated with the mugs.
  2. Reduce the mug quantity to one in the cart drawer. Check for one box, a $3 wrapping charge before discounts and tax, and the same message.
  3. Open the cart page if your theme exposes it and check that it shows the same selection. Go to checkout, verify the box and charge in the order summary, and stop before placing the order.
  4. Return to the cart and remove the mug line. Confirm the box, charge, and message for that line are gone and the tea tin remains. Start over and repeat the edits from the cart page if shoppers can edit there.

If the drawer and cart page disagree, reload the cart page and compare it with checkout. A stale drawer and a charge that still appears at checkout are different symptoms. Note which cart control you used and what changed after reload. Shopify explains how supported themes expose the drawer and page under cart theme settings.

For the setup steps, see how to add gift wrapping to product pages. If two selections carry different messages, also test how each message stays with its own gift.