> 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/pagefly-help-center-japanese/lian-xie/third-party-elements/build-a-loyalty-page-with-bon-blocks.md).

# BONブロックでロイヤルティページを作成する

PageFlyの10種類のBON Loyaltyブロックを使って、ヒーロー、商品、ポイント、VIPランク、紹介プログラムを自由なレイアウトで配置したリワードページを作成できます。

BON Loyaltyはポイント、VIPランク、紹介プログラム、Order boosterを管理し、PageFlyはそれらを活かすページを作ります。10種類のBONブロックはすべてPageFlyエディターでドラッグ＆ドロップできる要素なので、アプリ標準の1カラムのページではなく、ヒーロー、商品、独自のレイアウトを備えたリワードページを作成できます。

#### 始める前に

* [BON Loyalty](https://partners.secomapp.com/apps/bon/pagefly)と[PageFly](https://apps.shopify.com/pagefly?locale=ja)をインストールしてください。どちらも無料プランがあります。
* BONで先にプログラムを設定します（ポイント獲得ルール、VIPランク、紹介特典）。表示したいロイヤルティページのセクションをオンにしてください（Branding > Loyalty page）。
* ログイン時の表示を後で確認できるよう、Shopifyでテスト用の顧客を作成しておきます。

#### ステップ1：PageFlyでBON連携を有効にする

1. PageFly > Extra functions > Integrations を開きます（エディターの場合は Third-party elements > Manage integrations）。
2. 「BON Loyalty」を検索し、Activate をクリックしてから Done をクリックします。
3. エディターで Third-party elements > Loyalty & Rewards > BON Loyalty Rewards Referral を開くと、10種類のBONブロックがすべて表示されます。

<figure><img src="https://2271939490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT9kr2rEW4UEj3nmGvBuq%2Fuploads%2F0vQjYRySq4PmkPYJ2ZZK%2Fdoc-01-pagefly-catalog-10-bon-blocks.webp?alt=media&amp;token=165193b9-9b4d-4c03-bd8d-2720cd3c8cd5" alt="PageFlyエディターのThird-party elementsパネル：Loyalty &#x26; Rewards > BON Loyalty Rewards Referralに10種類のBONブロックがすべて表示されています"><figcaption></figcaption></figure>

#### ステップ2：ページを作成する

1. PageFlyで新しいページを作成します。
2. まず独自のセクションを追加します（Joinボタン付きのヒーロー、商品グリッド、信頼性を示すバナーなど）。
3. BONブロックを好きな位置にドラッグします。10種類のブロックは次のとおりです。

| ブロック                      | 表示対象      | 用途                                |
| ------------------------- | --------- | --------------------------------- |
| Loyalty header            | 全員        | ページ上部の参加／ログインカード                  |
| Loyalty profile           | ログイン済みの顧客 | ポイント残高、ランク、次の特典。ヘッダーのすぐ下に配置してください |
| How it works              | ゲスト       | 3ステップの説明                          |
| Points earning            | 全員        | ポイントを獲得できるすべての方法                  |
| Points redeem             | 全員        | 顧客が交換できる特典                        |
| VIP tier                  | 全員        | ランクと特典                            |
| Referral program          | 全員        | 友達に割引を贈り、ポイントを獲得                  |
| Order booster             | 全員        | 次のボーナスまでの残り金額                     |
| FAQs                      | 全員        | BONで設定したよくある質問                    |
| Hyperlink loyalty program | 商品ページのみ   | リワードページへのリンク                      |

4. 各ブロックは1ページにつき1回だけ追加してください。同じブロックを2つ配置するとページが正しく表示されません。
5. /pages/rewards のようなハンドルでページを公開し、BONウィジェットとストアのメニューからリンクします。

<figure><img src="https://2271939490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT9kr2rEW4UEj3nmGvBuq%2Fuploads%2Fri9HwPv67Z0wWE8PF0Tx%2Fdoc-02-pagefly-editor-bon-blocks.webp?alt=media&amp;token=ae2fcfeb-9a76-4331-8d01-bc863ef12797" alt="BON Loyaltyブロック（Loyalty header、Order booster、FAQs、How it works、Loyalty profile、Points earning）をリワードページに配置したPageFlyエディター"><figcaption></figcaption></figure>

#### ステップ3：2つの表示を確認する

1. ゲスト（ログアウト状態）としてページを開きます。How it works は表示され、ポイントのプロフィールは表示されません。
2. テスト用の顧客でログインし、ページを再読み込みします。ポイントとランクが入った Loyalty profile が表示されます。

<figure><img src="https://2271939490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT9kr2rEW4UEj3nmGvBuq%2Fuploads%2F6JXkTyIoQQ9kvDY23A6k%2Fdoc-03-storefront-guest.webp?alt=media&amp;token=28a8a4e0-0d0a-4725-bf3f-723cea7e0c61" alt="ゲストが見るストアのリワードページ：Join nowとSign inのボタン、How it worksのステップが表示されています" width="375"><figcaption></figcaption></figure>

<figure><img src="https://2271939490-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT9kr2rEW4UEj3nmGvBuq%2Fuploads%2FCYyQahGQ4XreDQ4jz2Zv%2Fdoc-04-storefront-signed-in.webp?alt=media&amp;token=d02ad38f-45ae-41a7-bb77-96a7d3cd7adc" alt="ログイン済みの顧客が見るストアのリワードページ：Earn pointsとRedeem pointsのボタン、ポイント残高が表示されています" width="375"><figcaption></figcaption></figure>

> **注意：** Loyalty profile はログイン済みの顧客に、How it works はゲストに表示されます。これはBONの仕様であり、PageFlyの設定ではありません。

#### 知っておきたいポイント

* ストアでBONのプログラムがオフになっている場合や、顧客にまだアクティビティがない場合、ポイントパネルは空になります。
* Hyperlink loyalty program は商品ページでのみ機能します。
* BON標準のロイヤルティページもそのまま使えます。PageFlyのページは独自のURLを持つ2つ目のページになります。

#### 詳しくはこちら

* ライブデモと詳しいガイド：[PageFly x BON Loyalty リワードページ](https://pagefly.io/pages/pagefly-bon-loyalty-rewards-page)
* PageFlyと連携できるロイヤルティアプリ一覧：[ロイヤルティ＆リワード](https://help.pagefly.io/pagefly-help-center-japanese/lian-xie/third-party-elements/what-loyalty-and-rewards-apps-does-pagefly-integrate-with)
* BON公式ガイド：[PageFlyとの連携方法](https://bonloyalty.com/ja/docs/branding/integrate-with-pagefly/)
* BONの設定に関するご質問は、BONアプリ内からBONサポートへお問い合わせください。


---

# 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/pagefly-help-center-japanese/lian-xie/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.
