---
title: "Storefront widget"
description: "What shoppers see on your Magento storefront once the module is installed, what happens after a plan is bought, and what to check when offers do not show."
---

Once the module is installed and the integration is authorised, protection offers appear on your storefront by themselves. You make no theme changes. Use this page to see what shoppers get on each page, what happens after a sale, and what to check when an offer is missing.

- **What you get:** offers on product pages, the cart and the mini-cart, and a contract for every plan sold.
- **What you do:** keep the integration authorised, and decide in the merchant portal which products carry an offer.

## What shoppers see on each page

| Page | What the shopper sees |
|---|---|
| Product page | The protection offer with the available plan terms and prices, a learn-more popup describing the coverage, and a link to the plan's terms. |
| Cart page | An offer to add protection to each eligible item that does not have it yet. |
| Mini-cart | The same per-item offer when the cart is opened from the header. |

Offers appear only for products that have a SureBright category and are eligible for a plan. Use the **Status chips** and the per-product switch on [Products](/merchant-portal/products) to see and control which products carry an offer.

The look and wording of the offer are controlled from your SureBright configuration rather than from Magento.

<Note>
Offers show only on the storefront domain SureBright registered when you authorised the integration. A second domain or a staging host pointing at the same Magento install will not be recognised.
</Note>

## What happens after a shopper buys a plan

When an order that includes a plan is placed, the contract is created for you. Later changes to the order (invoice, shipment, credit memo, cancellation) are picked up the same way, so refunds and cancellations reach the contract without a separate step. Contracts show under **Recent Sales** on the portal's [Sales](/merchant-portal/sales) page.

<Note>
For this to work, the **Sales Access** and **Catalog Access** permissions on the [admin panel](/magento/admin-panel#check-which-permissions-are-granted) must be granted. A **not granted** pill there is the usual reason a paid plan has no contract.
</Note>

## When offers do not show

<Steps>
  <Step title="Confirm the script is on the page">
    View the source of a product page and search for `magentoSBSIMSDK`. If it is missing, the module is disabled or the full-page cache is serving an old copy. Run **Purge caches** on the [admin panel](/magento/admin-panel#purge-caches-after-a-change).
  </Step>
  <Step title="Confirm the integration is authorised">
    The admin panel status must read **Authorized**. An **Authorization pending** or **Reauthorization required** alert means SureBright cannot read your catalogue, so there are no plans to offer.
  </Step>
  <Step title="Check the product in the portal">
    Open [Products](/merchant-portal/products) and search for the product. It needs a category and must be switched on. Run **Reindex now** from the admin panel if a recently added product is not listed.
  </Step>
  <Step title="Test connectivity">
    Run **Test webhook** on the admin panel. If your server cannot reach SureBright, offers may still show but orders will not become contracts.
  </Step>
</Steps>

If the script is present, the integration is authorised and the product is eligible but no offer shows, send SureBright support the product URL.

## Related

- [Admin panel](/magento/admin-panel): status, authorisation and the built-in checks.
- [Products](/merchant-portal/products): choose which products carry an offer.
- [Test your setup](/platforms/test-your-setup)

<Accordion title="For developers">
  The module adds a block named `sb.script.footer` at the start of the body on every storefront page. It outputs two tags:

  ```html
  <script>
  window.SureBright = {
    storeId: window.location.host,
    storePlatform: "MAGENTO"
  }
  </script>
  <script src="https://.../magentoSBSIMSDK.js"></script>
  ```

  The first identifies your store by its storefront host name and tells SureBright the platform is Magento. The second loads the SureBright storefront script, the same one used on other platforms.
</Accordion>
