For Business

Install the Buy with Prime widget code

After you create the Buy with Prime button code, you need to add it to the product detail page template on your site.

The process for adding the Buy with Prime button code depends on how your site is built and the theme you use.

This content is applicable to standard themes. If you’re using a custom theme, go to Troubleshoot your Buy with Prime button.

Note: When you install the Buy with Prime button code, you need to edit the theme of your ecommerce site, regardless of whether it uses a standard theme or a custom theme. If you later change or update the theme, you may inadvertently change or erase certain features of your ecommerce site theme, including your Buy with Prime button code. If this is the case, you’ll see that the Buy with Prime button has disappeared from your site. If you’re planning to change or update your theme after you’ve added the Buy with Prime button code, make sure to copy the button code (and note its location within the theme) so that you can add it back in again.

Save a copy of your product detail page template and follow the general instructions. After you’ve finished installing the Buy with Prime button code, preview the Buy with Prime button for the products that you’ve set up on your site.

Ecommerce Providers

The following table lists the current compatibility of the Buy with Prime button with ecommerce providers.

Ecommerce providerBuy with Prime button compatibleVariations compatible
ShopifyYesYes
BigCommerceYesYes
WooCommerceYesYes
MagentoYesYes
Magento 2YesYes
Big CartelYesNo
Custom SiteYesYes
PrestaShopYesNo
Shift4ShopYesTesting
UltracardYesTesting
OpenCartYesTesting
X-CartYesTesting
Salesforce Commerce Platform YesTesting
Joomla x VirtueMartYesTesting

Choose your ESP to install the Buy with Prime widget: