Skip to content

Checkout guard

SizeCalc doesn’t trust the price shown in the browser. Two Shopify Functions run on Shopify’s side:

  1. Cart transform recalculates the price of each item from its width and height, using your settings.
  2. Checkout validation stops the order if an item priced by size has a missing size, a size outside your limits, or a size that doesn’t fit the grid.

Checkout stops an item without a valid size

If something is wrong, checkout shows a message such as “Please choose a size for every custom-size item in your cart.” and the order can’t be placed until it’s fixed.

The functions run for the cart page, the cart drawer, Shop Pay and express checkout buttons, and on every Shopify plan.

Only one app can change an item’s price with a cart transform. If another app also changes prices for the same products, use one of them for those products.