> ## Documentation Index
> Fetch the complete documentation index at: https://neezon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify storefront, checkout, and theme setup for Smarty

> Why checkout is final for prices, how the online store theme differs, and when to turn on the Smarty app embed.

<Info>
  Customers see your **online store** (theme) first, then **checkout** when they pay. Smarty applies discount **math at checkout**. Some Smarty features also need your **theme** to show messages or widgets correctly.
</Info>

**Theme setup:** Turn on the embed in [Settings](settings#theme-app-embed). First-time setup is covered in [Install and open](install).

## Checkout (where the price is final)

| Idea         | What to know                                                                                           |
| ------------ | ------------------------------------------------------------------------------------------------------ |
| **Checkout** | Shopify applies your Smarty discount here. **Totals on the checkout page are the source of truth.**    |
| **Testing**  | Always test with a real cart (or a **draft order** in Shopify) and complete the flow through checkout. |

If something looks wrong, fix **rules and dates** in the discount first — not the theme.

## Online store (theme)

| Idea                 | What to know                                                                                                                                  |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Theme**            | The **look** of your shop (product pages, cart drawer, etc.). Scripts from apps can run here if you allow them.                               |
| **Smarty app embed** | Lets Smarty load **storefront** helpers (for example messages tied to a campaign). **It does not replace checkout** for discount calculation. |

If the storefront message looks different from the final checkout amount, trust **checkout** first, then review [FAQ](faq) and your discount setup in [Create a discount](create-discount).
