简体   繁体   中英

Amazon button to Shopify product page

Can anybody tell me how to add a amazon button to product page to auto search the shopify product title on amazon. I so far got this code but don't know what to add to "product title" section to auto search the product title on amazon.here is the code i found online

**here is the code i found online

<a href="https://www.amazon.com/s?k= "product title" target="_blank"
   rel="noopener noreferrer"
   style="border: none; text-decoration: none;">

   src="https://www.niftybuttons.com/amazon/amazon-button2.png" />

</a>

code is as above**

Product object is available on product pages. It can be used to get Product Title. Sample code will be like

<a href="https://www.amazon.com/s?k={{ product.title | url_escape}}" target="_blank">
See it on Amazon
</a>

Product Object Documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM