The Shopify Checkout Rewards component lets customers view and apply their Omneo reward balance at Shopify checkout.Documentation Index
Fetch the complete documentation index at: https://docs.omneo.io/llms.txt
Use this file to discover all available pages before exploring further.
How it works
- At checkout, the component checks if the customer has an Omneo reward balance.
- If a balance is available, a redemption UI is shown.
- The customer selects how much to redeem.
- A placeholder product (the “Loyalty Reward” product) is added to the cart at a negative price to apply the discount.
- A Shopify Script distributes the reward amount proportionally across eligible line items.
- On order completion, the order and transaction sync records the redemption.
Setup
Add the Loyalty Reward product
Create a non-physical Shopify product with the description “Loyalty Reward” (or equivalent). Copy its Variant ID, which you will need in the component config.
Create the checkout snippet
Create a snippet in your Shopify theme named
omneo-checkout-rewards.liquid. Configure the variables at the top:Create the Shopify Script
Install the Script Editor app and create a Line Items script. The script proportionally distributes the reward discount across eligible line items, respecting gift card exclusions.
Create the token page
Create a Shopify page at
/pages/omneoviewtoken using the page.omneoViewToken.liquid template. This allows the component to securely retrieve the customer’s Omneo token.Full snippet code, the Shopify Script code, and the token page template are available from your Omneo implementation team.