> For the complete documentation index, see [llms.txt](https://help.pagefly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pagefly.io/integrations/third-party-elements/build-a-loyalty-page-with-bon-blocks.md).

# Build a loyalty page with BON blocks

Use the 10 BON Loyalty blocks in PageFly to build a rewards page with your own layout: hero, products, points, VIP tiers and referrals.

BON Loyalty runs your points, VIP tiers, referrals and Order booster. PageFly builds the page around them. All 10 BON blocks are drag-and-drop elements in the PageFly editor, so you can give your rewards page a hero, your products and your own layout instead of the default one-column app page.

### Before you start

* Install [BON Loyalty](https://partners.secomapp.com/apps/bon/pagefly) and [PageFly](https://apps.shopify.com/pagefly). Both have a free plan.
* In BON, set up your program first: earning rules, VIP tiers and referral reward. Turn on the loyalty page sections you want to show (Branding > Loyalty page).
* Create a test customer in Shopify, so you can check the signed-in view later.

### Step 1: Turn on the BON integration in PageFly

1. Open PageFly > Extra functions > Integrations (or, in the editor: Third-party elements > Manage integrations).
2. Search for "BON Loyalty", click Activate, then Done.
3. In the editor, open Third-party elements > Loyalty & Rewards > BON Loyalty Rewards Referral. You will see all 10 BON blocks.

<figure><img src="https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2FDkbsO4W1lotxtR7o5tWH%2Fdoc-01-pagefly-catalog-10-bon-blocks.webp?alt=media&amp;token=bdf33a71-9d65-47ef-a121-7f08a562d119" alt="PageFly editor, Third-party elements panel: Loyalty &#x26; Rewards > BON Loyalty Rewards Referral with all 10 BON blocks"><figcaption></figcaption></figure>

### Step 2: Build the page

1. Create a new page in PageFly.
2. Add your own sections first: a hero with a Join button, a product grid, a trust strip.
3. Drag the BON blocks where you want them. The 10 blocks are:

| Block                     | Shows to            | Use it for                                                          |
| ------------------------- | ------------------- | ------------------------------------------------------------------- |
| Loyalty header            | Everyone            | Join / Sign in card at the top                                      |
| Loyalty profile           | Signed-in customers | Points balance, tier and next reward. Put it right under the header |
| How it works              | Guests              | A 3-step explainer                                                  |
| Points earning            | Everyone            | Every way to earn points                                            |
| Points redeem             | Everyone            | Rewards customers can claim                                         |
| VIP tier                  | Everyone            | Tiers and perks                                                     |
| Referral program          | Everyone            | Give a friend a discount, get points                                |
| Order booster             | Everyone            | How close the shopper is to the next bonus                          |
| FAQs                      | Everyone            | Questions you set in BON                                            |
| Hyperlink loyalty program | Product pages only  | A link to your rewards page                                         |

4. Add each block only once per page. Two copies of the same block break the page.
5. Publish the page at a handle like /pages/rewards, then link to it from the BON widget and your store menu.

<figure><img src="https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2Fn1Bl9jJM37ijeZd3u2Dg%2Fdoc-02-pagefly-editor-bon-blocks.webp?alt=media&amp;token=566a644c-c7af-4848-9ff4-2be2de658d2e" alt="PageFly editor with BON Loyalty blocks (Loyalty header, Order booster, FAQs, How it works, Loyalty profile, Points earning) placed on a rewards page"><figcaption></figcaption></figure>

### Step 3: Check both views

1. Open the page as a guest (signed out). You should see How it works, but not the points profile.
2. Sign in as your test customer and reload the page. You should now see the Loyalty profile with points and tier.

<figure><img src="https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2FChFq1tfWkd3aZe9QWdA3%2Fdoc-03-storefront-guest.webp?alt=media&amp;token=7dbb208c-6d33-4cce-9c08-58efee9b9636" alt="Storefront rewards page seen by a guest: Join now and Sign in buttons with the How it works steps" width="375"><figcaption></figcaption></figure>

<figure><img src="https://2800568630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLf471SpmnojuhVGQb2E%2Fuploads%2FEDSKa4FOKSL3CvDx4hoe%2Fdoc-04-storefront-signed-in.webp?alt=media&amp;token=7eb459fd-1c89-4f1a-8547-d263d1cda57f" alt="Storefront rewards page seen by a signed-in customer: Earn points and Redeem points buttons with the points balance" width="375"><figcaption></figcaption></figure>

> **Note:** Profile shows for signed-in customers; How it works shows for guests. This is how BON works, not a PageFly setting.

### Good to know

* The points panel is empty when the BON program is turned off for the store, or when the customer has no activity yet.
* Hyperlink loyalty program only works on product pages.
* You can keep BON's default loyalty page too. The PageFly page is a second page with its own URL.

### Learn more

* See a live demo and full guide: [PageFly x BON Loyalty rewards page](https://pagefly.io/pages/pagefly-bon-loyalty-rewards-page)
* All loyalty apps that work with PageFly: [Loyalty & Rewards](https://help.pagefly.io/integrations/third-party-elements/what-loyalty-and-rewards-apps-does-pagefly-integrate-with)
* BON's own guide: [Integrate BON with PageFly](https://bonloyalty.com/docs/branding/integrate-with-pagefly/)
* Questions about BON settings: contact BON support inside the BON app.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.pagefly.io/integrations/third-party-elements/build-a-loyalty-page-with-bon-blocks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
