Why should you install the Buy with Prime Checkmark and Delivery Estimate on your site?
Increase visibility of your Prime products by automatically displaying the Prime Checkmark logo and delivery estimates on product cards in search results, product listings, and other areas on your site.

How it works
Just add a script and code snippet to your existing product card files. The tag will be added or removed dynamically for inventory changes and whether you turn Prime on or off. The installation takes less than 10 minutes.
Please note that the current code can’t check if all variants in a product are available to buy—it only checks the main item or the first option. Virtual bundles are currently not supported.
Accessing and Copying Code Snippet
1. In your Buy with Prime console, click Prime Features

2. Select the Prime Checkmark Logo & Delivery Date tile



After opening the page, an explanation of the feature appears, and by scrolling down, a customization menu is available.
3. Customize your preferences using the menu, then copy the provided code snippets
Installing Your Code Snippets
There are 2 code snippets that appear on your Buy with Prime console page that you need to copy and paste, each in a different location.
- sitewide snippet
- product card snippet
We will refer to the first snippet as the sitewide snippet and the second as the product card snippet.
If you know how to open the Shopify Code Editor, you can skip to instructions for adding the sitewide snippet
Opening Shopify Code Editor
- From your admin dashboard, click on Sales channels, then Online Store, then Themes (the Online Store option may not appear until you click on “Sales channels”):



2. Click on the “…” button next to the customize button (you can duplicate and edit a development version of your site, if you don’t want to edit your main theme)



Adding sitewide snippet
These are the instruction to install the first code snippet that appears on the page, which we will refer to as the sitewide script.
First, copy the code snippet that appears on your console page to your clipboard.
This is what the code snippet should look like (your code will contain your unique id)
<script
type="module"
data-target-id="[Your Unique ID]"
src="https://cdn.elements.amazon/elements/amazon-delivery-message/v1.0/web-component.js">
</script>Note: The merchant console generates a code that has all your site details. You don’t need to change anything in the code.
In the code editor, choose Sections, and then you can choose ONE of the following files (Use the file filter in the Shopify code editor (screenshot below) to search for these names, then select the file):
- (preferred) header.liquid OR
- footer.liquid OR
- theme.liquid
Paste the Buy with Prime cart code in the file you chose to edit:
- If you chose: header.liquid: Paste the code as the last line of code.
- If you chose: footer.liquid: Paste the code as the last line of code.
- If you chose: theme.liquid: Paste the code before the closing </body> tag.
Click Save



Adding product card snippet
Locating product card file
To insert the snippet in the correct location, you need to identify the file that powers your theme’s “product card.” The product card is the element that displays an individual product within a list, such as a tile on a product collection page.
Themes can use different names for this file, so we’ve provided a list of common ones. Use the file filter (in screenshot below) in the Shopify code editor to search for these names.



Start by searching for “card-product” the most common file name. This name works for many themes, including the following:
- Dawn
- Refresh
- Toyo
- many others



If you don’t have that file, some other possible names to search for:
- product-card.liquid
- product-card-grid.liquid
- product-card-list.liquid
- product-listing.liquid
- product-item.liquid
- product-block.liquid
You can type part of these keywords and try out files that look similar.
To make sure you’re in the right file, there should be the word “price” somewhere in the file. You can use the search function to locate the price element in the product card code.
Troubleshooting for finding Product Card File
This section will be further troubleshooting, if you didn’t find the file with the instructions above. If you did, you can skip down to the instructions for setting the sku code and pasting the code.
If you cannot find any of the above files,
- Search for the collection page by typing the “collection” keyword into the file filter
- Try to find the collection page, which should be titled main-collection.liquid or collection.liquid and click on it
- search for the words “for product” using the search bar on the bottom of the file
- copy the text after the first render tag that appears below the line below {%- for product in collection.products -%}.
- search for the text in the file filter
- i.e. if you see {% render ‘product-block’ %}, you would search for product-block and open the product-block.liquid file
- Please note that you may need to open the snippets file, if the sections file shows another render tag
In the example below,
- the collection keyword was used to find the main-collection.liquid file
- after searching for the “for product” keyword, the {% render ‘product-block’ %} line appears below the for product line.
- This strongly indicates that the product card is powered by the product-block.liquid file.



If these instructions don’t work, please leave us feedback here for further support.
Setting SKU Code in product card snippet
After finding the correct file, you can insert the snippet in your desired location. The most common placement is below the price element, and the following steps will guide you on how to do that.
Depending on your theme, the SKU variable may have different names.
The most common code (used by Dawn theme and others) is card_product.selected_or_first_available_variant.sku, but some other themes use product.selected_or_first_available_variant.sku or just sku
If you search for these keywords using the code editor search function, and find it in the file, you can use the exact variable that you find. You can also try searching for “sku” and copy the full variable that you find (including the words before the “.sku”, if there are any).
Copy the snippet below (which also appears on your console page) and replace the REPLACE_WITH_SKU_VARIABLE text with the sku variable that you found.
<amazon-delivery-message
product-sku="{{REPLACE_WITH_SKU_VARIABLE}}"
message-type="delivery-estimate"
color-mode="light"></amazon-delivery-message>
For example if the product variable was card-product, this is the final tag:
<amazon-delivery-message}}”
product-sku="{{card_product.selected_or_first_available_variant.sku
message-type="delivery-estimate"
color-mode="light"></amazon-delivery-message>
Locating the price element in the product card
Once you’ve located the product card, you can search the file for the word ‘price’ to see the times the word appears.
Paste the code snippet at the bottom of the product card or directly below the product price.
Testing Your Code
Once you’ve pasted the code, load a collection page which contains Buy with Prime products, and confirm that the checkmark is showing up under the price.
If it’s not showing up at all, recheck the steps above to make sure both scripts are installed in the correct location.
If it’s showing up in the wrong place, edit the product card file and move the tag around to a location in the code that corresponds to the location you want the checkmark to show up.
If you need further support or these instructions didn’t work, please fill out this form here, and we will get back to you with support options.