如何在shopify的购物车按钮下面添加支付安全图片
|
如何在shopify的购物车按钮下面添加支付安全图片
|
|
|
|
|
|
|
Shopify_Key
发表于 2022-5-11 16:59:00
|
显示全部楼层
|
社区的初衷是交流,而非提问。不要只是单向索取,也应想想自己能为他人提供什么价值。
|
|
|
|
|
Apollo_
发表于 2022-5-11 16:59:40
|
显示全部楼层
1.文件: config/settings_schema.json
{
"name": "theme_info",
"theme_name": "ShowTime",
"theme_author": "Mile High Themes",
"theme_version": "5.1.1",
"theme_documentation_url": "https:\/\/help.milehighthemes.com\/",
"theme_support_email": "support@milehighthemes.com"
},
// 添加下面代码
{
"name": "Paypal",
"settings": [
{
"type": "image_picker",
"id": "paypal",
"label": "Paypal image"
}
]
},
2. snippets 新增 paypal
{% if settings.paypal %}
<img src="{{ settings.paypal | img_url: 'master' }}">
{% endif %}
{% include 'paypal' %}
|
|
|
|
|
|