第 95 期 Shopify 免插件添加亚马逊购买按钮
1 min read

第 95 期 Shopify 免插件添加亚马逊购买按钮

点击这里查看视频演示

{% unless product.metafields.my_fields.amazon_link == blank %}
   <a href="{{product.metafields.my_fields.amazon_link}}" target="_blank" style="text-decoration: none;">
   <button type="button" class="button" style="width: 100%; margin-top: 10px; background-color: #000;"><span>Buy on Amazon</span></button></a>
{% endunless %}