> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.hoppyapps.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 🧮 How the Free Shipping Goal Amount Is Calculated

Ever wondered why the bar says "$12.50 away" when you expected a different number? This guide explains exactly what the app counts toward a goal 🧮

---

## **🎯 Two Ways to Measure Progress**

Set in the **Goal** tab (for **Based on Goals** setups: **Goal Rules → Goal**) under **Goal Type**:

* **Cart total amount**: goals are based on the amount of money spent
* **Product quantity**: goals are based on the quantity of products

---

## **💰 Cart Total Amount**

The app adds up the price of the cart lines and compares the total with your **Spending goal**.

**Progress bar calculations** decides which price is used:

* **Before Discount**: the original line prices, before any discount is applied
* **After Discount**: the line prices after discounts that are already applied to the cart

**What is not counted**

* **Free gifts** added by the app. Gift lines never count toward a goal
* Products you excluded from goals (see below)

**Reaching the goal**

* The goal is reached when the counted total is **equal to or higher than** the goal amount
* The remaining amount shown by `{order-value-progress}` is the goal minus the counted total
* The same rule is used by the Shopify discount at checkout

💱 The total is the amount in the shopper's own currency, and the goal is a plain number. See **💱 How Free Shipping Goals Work with Multiple Currencies**.

---

## **📦 Product Quantity**

* By default every unit counts, so 3 of the same product counts as 3
* Check **Count only unique products** (shown only for **Product quantity**) to count different products once each, so a product bought three times counts as 1
* Free gifts are not counted
* The goal field takes whole numbers of at least 1

---

## **🚫 Include or Exclude Products from Goals**

In **Include/Exclude Products from Goals** you can choose:

* **Do not exclude any products (Include All)**
* **Exclude all products in collections**
* **Exclude specific products (max 20)**
* **Include all products in collections**
* **Include specific products (max 20)**

Excluded products are removed from the amount (or quantity) the bar counts. With an **Include** option, only the included products count.

Two extra checkboxes:

* **Prevent free shipping entirely when an excluded product/collection is present**: shown when you pick one of the **Exclude** options (collections or specific products) and a goal uses **Free Shipping**. If the cart contains an excluded product, free shipping is not applied at all
* **Hide bar / disable free shipping when cart contains only digital products**: the bar is hidden and the reward is not applied when no item in the cart needs shipping

When nothing in the cart is counted (for example, the cart contains only excluded items), the bar shows your **Cart empty message**. On the cart page and in the cart drawer, the bar is hidden while the cart is empty.

---

## **🧮 Worked Example**

Goal: free shipping at **100**. Cart: Product A 60, Product B 30, Free gift (worth 20). **Exclude specific products** has Product B.

* Counted: Product A only = 60
* Remaining: 40
* Product B and the gift are ignored

---

## **⚠️ Important Notes**

* **Only product prices are counted.** Shipping costs are not part of the goal
* **Multiple goals** are checked separately. Each goal has its own amount, up to 7 goals
* **Market goals** use the same rules with their own amounts. See **🌍 How to Set Free Shipping Goals per Country or Market**
* **Reward application**: with **All rewards should be applied** every reached reward can apply. With **Only last reward should be applied** only the rewards on the highest reached goal apply. See **🏷️ How Free Shipping Upsell Works with Other Discounts**
* After you change these settings, click **Save** and **Publish**

---

## **🔧 Troubleshooting**

**The bar counts less than the cart total**

➡️ Check **Include/Exclude Products from Goals**

➡️ Free gifts and excluded items are not counted

➡️ If **Progress bar calculations** is **After Discount**, discounts reduce the counted amount

**The bar shows the amount differently from my theme**

➡️ Check **Amount Format** in the same card. See **🔢 How to Hide Trailing .00 in Free Shipping Bar Amounts**

**The bar does not update when the cart changes**

➡️ See **🔄 Free Shipping Bar Not Updating After a Cart Change [Fixed]**

---

## **✅ Final Result**

✅ You know exactly which prices count toward a goal
✅ You can include or exclude products to control it
✅ The bar and the checkout discount use the same rule