Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a known issue with some Themes. It occurs if the cart page has non-standard line item quantity inputs in your theme. The app can not properly get the line item quantities, so the line item is removed from the cart.

The app relies on the fact that all the quantity inputs have id attribute with line item variant id inside. Ususally the id attribute looks like "updates_742384782", where 742384782 is Shopify variant ID.

There are 2 possible cases:

  1. line item quantity input in your theme doesn't have the id attribute at all or this attribute doesn't contain variant ID value.

  2. line item quantity input in your theme contains variant ID inside the id attribute, but it has another prefix (not "updates_").

In the case (1) you need to modify/add the id attribute to make it look like "updates_742384782" (see above). Just use corresponding liquid variable in the cart.liquid. Example: {‌{id="updates_{‌{ line_item.id }‌}"}‌}.

                                                                                      (click to enlarge)

In the case (2) you need to 

  1. Open Themes section on the admin panel of your web store (Online Store → Themes);

  2. Find Theme from the list which will be used with our installed app.

  3. Click Actions  Edit Code.

  4. Add the following code to the beginning of the cart.liquid file under Templates section:

<script>SPOCustom = {}; SPOCustom.cartQuantitySelector = "[id^='your_prefix_here:id']";</script>


Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1422e
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("when","empty","button","becomes","can","after","issue","on","how","cart","checkout","the","i","page","fix","clicking") and type = "page" and space = "SUP"
labelsHow can I fix the issue when cart becomes empty after clicking checkout button on page

...

Page Properties
hiddentrue


Related issues