Skip to content
Tutorials Center
My learning

Topics

Lesson 26 of 37 ยท Forms, Ecommerce and Apps

Shipping, Tax and Discount Math

Understand shipping zones and rates, sales tax versus VAT, coupons and discount stacking in Wix and Webflow stores, with runnable calculators using integer cents.

The numbers at checkout decide whether a shopper pays or leaves. Shipping, tax and discounts all change the total, and they interact: does a coupon reduce the price before tax, or after? Does free shipping start at a subtotal before or after the discount? Platforms let you configure these, but you must understand the rules to set them correctly.

This is a conceptual lesson about Wix and Webflow stores, which run on their own servers. Tax rules differ by country and change over time, and nothing here is tax or legal advice: confirm the rules with your tax authority or accountant. The calculators are stand-ins for explanation, and the real platforms compute totals themselves.

Shipping

Both platforms let you define shipping zones (groups of countries or regions) and rates inside each zone. Typical rate types:

  • Flat rate: one price per order (or per item).
  • Weight-based: price depends on total weight, in brackets.
  • Price-based: price depends on the order subtotal (cheaper or free above a threshold).
  • Free shipping: often with a minimum order value.
  • Local pickup or delivery: no shipping cost, or a local rate.
  • Real-time carrier rates: pulled from a carrier. This usually requires a higher plan or an app; check availability.

In Webflow, shipping is set in the Ecommerce settings (zones, methods, conditions and rates). In Wix, it lives in the dashboard's shipping and delivery settings, where you add regions and methods and may connect carriers or apps for labels and tracking. Always check which countries your plan and payment provider support before promising worldwide shipping.

Tax

Two main models:

  • Sales tax (United States and some other places) is added on top of the listed price and varies by destination (and sometimes by product type).
  • VAT or GST (EU, UK, Australia, many other countries) is usually included in the displayed price for consumers.

Both platforms offer tax settings where you add rates by region, choose whether prices include tax, and may offer automatic tax calculation with a plan or tax app. Digital goods and cross-border sales often have special rules, and registration thresholds may apply, so confirm with a professional.

Tax is generally computed on the discounted price of goods, and rules differ on whether shipping is taxable. Different jurisdictions treat this differently, so set it according to the rules where you sell.

Money math in integer cents

Because floating-point rounding errors accumulate, calculate in whole cents, and round at the defined step (usually per line or on the total, depending on the jurisdiction and platform).

JS Stand-in: shipping rate by weight and subtotal

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Discounts and coupons

Common discount types:

  • Percentage off the order or specific products.
  • Fixed amount off.
  • Free shipping.
  • Buy X get Y (where supported).
  • Automatic discounts that apply without a code, for example "10% off orders over $100".

Webflow supports discount codes with rules such as minimum order value, usage limits, dates and which products or categories qualify. Wix offers coupons and automatic discounts with similar conditions, plus sale prices set directly on products.

Questions to settle before you launch a promotion:

  1. Stacking: can two discounts apply together? Most stores allow one code per order.
  2. Order of operations: a free-shipping threshold should be checked against the subtotal after or before discount? Decide and state it.
  3. Excluded items: do sale items qualify?
  4. Limits: one use per customer, expiry date, total number of uses.

Putting it together

The stand-in below applies a percentage coupon, then tax, then adds shipping, in the order that many stores use: discount goods, compute tax on the discounted goods, add shipping last. It rounds once per step to whole cents.

JS Stand-in: order total

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Notice that with VAT included, the total does not add the tax line; the tax figure is the part of the price that is tax.

Displaying prices honestly

  • Show whether the displayed price includes tax.
  • Show estimated shipping before checkout (a shipping calculator on the cart page helps).
  • Make the currency obvious. Both platforms support multiple currencies on some plans, converting at checkout; check current features and fees.
  • Display the final total, not only per-item prices.

Common mistakes

  • Forgetting to enable tax collection in a region where you are required to.
  • Using flat free shipping that costs more than the margin.
  • Free shipping thresholds set just above the average order value so they never trigger, or below it so they cost too much; test with your real numbers.
  • Overlapping automatic discounts and coupons that cut margin below zero.
  • Rounding differently from the platform: always compare your sums to the platform's test order.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which tax model usually shows prices that already include tax?

    VAT and GST are typically included in consumer prices, while US sales tax is added at checkout.
  2. 2. Why calculate with integer cents?

    Whole numbers keep money exact; floats can produce values like 0.30000000000000004.
  3. 3. Which is a stacking question to settle for a promotion?

    Stacking rules decide whether coupons and automatic discounts combine.
  4. 4. What should you do before relying on any tax settings?

    Tax rules vary and change, so confirm them for the places you sell.

Summary

  • Shipping is built from zones and rates (flat, weight, price, free, pickup, carrier).
  • Sales tax is added; VAT/GST is usually included; confirm rules with a professional.
  • Define discount stacking and the order of operations before you launch a promotion.
  • Compute money in integer cents and always compare with a real test order.

Next: Apps, Custom Code and Velo