Displaying Shop Promise on your product page
The Shop Promise badge is displayed beside delivery dates and on product pages for eligible deliveries that are estimated to be delivered domestically in the United States in five or less calendar days. This badge lets customers know that their order includes fast and reliable delivery.
After your application for Shop Promise is approved, you should navigate to the product page using your theme editor to confirm that the Shop Promise badge is displaying correctly.
If the badge isn't displaying correctly, then you'll need to manually position the Shop Promise module.
On this page
Manually position the Shop Promise module
If you're comfortable reading and editing theme code, then you can identify where to make changes and update the product page.
Identify where to make changes
The code for the Shop Promise module needs to be included in the product form on the product page, which should be similar to {%- form 'product', product -%}
. The Shop Promise module can be found in various locations depending on your theme. The following are common locations:
-
main-product.liquid
-
product-form.liquid
-
product-template.liquid
-
product.liquid
Update the product page
Steps:
Desktop
- From your Shopify admin, go to Online Store > Themes.
- Find the theme you want to edit, click the … button to open the actions menu, and then click Edit code.
- Open the relevant file.
- Find the line that contains
{%- if block.settings.show_dynamic_checkout -%}
or{{ form | payment_button }}
. - Create a new line directly below
{%- if block.settings.show_dynamic_checkout -%}{{ form | payment_button }}{%- endif -%}
and paste the following on that line:
- Click Save.
The result should be similar to the following:
iPhone
- From the Shopify app, tap the … button.
- In the Sales channels section, tap Online Store.
- Tap Manage themes.
- Find the theme you want to edit, tap the … button to open the actions menu, and then tap Edit code.
- Open the relevant file.
- Find the line that contains
{%- if block.settings.show_dynamic_checkout -%}
or{{ form | payment_button }}
. - Create a new line directly below
{%- if block.settings.show_dynamic_checkout -%}{{ form | payment_button }}{%- endif -%}
and paste the following on that line:
- Tap Save.
The result should be similar to the following:
Android
- From the Shopify app, tap the … button.
- In the Sales channels section, tap Online Store.
- Tap Manage themes.
- Find the theme you want to edit, tap the … button to open the actions menu, and then tap Edit code.
- Open the relevant file.
- Find the line that contains
{%- if block.settings.show_dynamic_checkout -%}
or{{ form | payment_button }}
. - Create a new line directly below
{%- if block.settings.show_dynamic_checkout -%}{{ form | payment_button }}{%- endif -%}
and paste the following on that line:
- Tap Save.
The result should be similar to the following:
Manually override the Shop Promise module theme
The Shop Promise module has a dark and light theme. The module automatically uses whichever theme has the highest contrast ratio compared to the background color of the product page.
If you're comfortable reading and editing theme code, then you can override the selected theme of the module by adding a data attribute to the anchor element that's used to manually position the Shop Promise module.
Before you make any changes, duplicate your theme and edit the duplicate theme, so that you can easily revert any changes.
Steps:
Desktop
- Follow the instructions to manually position the Shop Promise module on your product page and then keep the theme editor open.
- Add a theme data attribute to your newly created anchor element set to dark or light.
- Click Save.
The result should be similar to one of the following:
Or
iPhone
- Follow the instructions to manually position the Shop Promise module on your product page and then keep the theme editor open.
- Add a theme data attribute to your newly created anchor element set to dark or light.
- Tap Save.
The result should be similar to one of the following:
Or
Android
- Follow the instructions to manually position the Shop Promise module on your product page and then keep the theme editor open.
- Add a theme data attribute to your newly created anchor element set to dark or light.
- Tap Save.
The result should be similar to one of the following:
Or