Validate Buy with Prime for your store
- After completing the onboarding steps within the app, under Managing your account, select Troubleshoot your experience.
- To match your products across Shopify and Amazon, enter your Amazon SKU (viewable on Amazon Seller Central) for each product in your catalog one by one, or in bulk using a pre-formatted CSV file. When you activate Buy with Prime on a product, it’s live on your Shopify site immediately, if the Conditions to offer Buy with Prime are met. If the Buy with Prime button isn’t showing on your site, choose Buy with Prime button not showing on your site? Troubleshoot here.
- On the Troubleshooting your Buy with Prime experience page, choose Select products.
- Choose your products from the list and click Select. A list of validations are performed.
- Identify the validations with an exclamation mark and work on the resolutions.
Troubleshoot issues identified in the Product checker
- Under Sales Channels, choose Online Store. Your theme options appear.
- Choose the more actions menu (...), and then choose Edit Code.
- In the Snippets folder, search for the file Product-form.liquid. If you don’t have that file, go to step 10.
- Choose Product-form.liquid to access the code editor.
Place your cursor in the code box, and then search for delivery-promise, which appears within the code block:
<div class="delivery-promise__promise-container"></div>
If you don’t have delivery-promise search for payment_button which appears within the code block:
{{form| payment_button}}
Paste the following line under the </div> or </button> tag, whichever is the last tag containing the payment button.
<div class="delivery-promise__promise-container"></div>
- Press Save, and then choose Preview Store.
- The Buy with Prime checkout option appears with the promise activated for the product that showed as failed in the Product checker. If the checkout option doesn’t appear, proceed to step 11.
(Only proceed if you don’t have the file Product-form.liquid in the Snippets folder.) Search for the following file:
In the Snippets folder:
- product-info.liquid
- product-buy-buttons.liquid
In the Sections folder:
- product-template.liquid
- product-details.liquid
- main-product.liquid
In the Templates folder:
- product.liquid
If the Buy with Prime button doesn’t appear on the expected product page, add a different code block preceding the following line, and then refresh your product page.
<div class="delivery-promise__promise-container"></div>
Validate variations
In customized implementations, you might have different product templates for each variant. You can validate and troubleshoot variants using the following steps if Buy with Prime shows up for a subset but not all of the variants.
- Open your Shopify admin.
Note: These steps may vary if you are using a customized theme. - On the side menu, under Sales Channels, choose Online store.
- Choose the more actions (…) drop-down menu on your theme, and then Edit Code.
- In the code editor, choose Assets, and open the product-info.js file.
- Locate the updateURL function, and then add the following script:
updateURL() { if (!this.currentVariant || this.dataset.updateUrl === 'false') return; window.history.replaceState({}, '', `${this.dataset.url}?variant=${this.currentVariant.id}`); }
- Save your changes.