Boost Your Shopify Store: Easily Integrate Amazon Product URLs for Every Product!
1) Setup metafields in Shopify?
- Log in to your Shopify admin.
- Go to Settings > Custom data.
- From the Custom data section, click on Products.
- From Products metafield definitions, click on Add definition button.
- Write the name of the metafield and then click on select type of metafield to URL.
- click on Save button.
- Now Copy the metafield definition
- Now close the settings popup.
2) How to setup metafield in Shopify theme?
- Go to Online Store > Themes.
- Click on edit code.
- Now write the product in search box of theme and click on “main-product.liquid” file.
- Now scroll down to “buy-buttons.liquid” file
- Now put this below code above “buy-buttons.liquid” file
{% if product.metafields.custom.amazon_product_url %}
<a href=”{{ product.metafields.custom.amazon_product_url }}” class=”product-form__submit button button–full-width button–secondary”>Buy from Amazon</a>{% endif %} - Now close the theme editor.
3) How to Integrate Amazon URL to product page in Shopify?
- Go to Products > Click any one Product.
- Scroll down to Metafields Amazon product URL
- Now add the Amazon URL of selected product
- Now save the product.
- Now check the product on website
Do you require assistance in creating your ideal Shopify store? Please get in touch with us to construct and expand the business. Check out our recently completed projects.