Liquid、JavaScriptなどに関する質問
https://shopify.github.io/buy-button-js/advanced#customizing-the-dom
こちらを参考に、BuyButtonで出力したコレクションにカスタマイズをしようとしているのですが、何も出力されません。
記述が間違っているのでしょうか?
どなたか、ご教授、お願いいたしますm(_ _)m
解決済! ベストソリューションを見る。
成功
自己解決いたしました。
以下の記述を追加したら、表示されました。
(orderに'details'を加えました。)
"templates": {
"details": '<div id="{{data.title}}">' +
'<span class="{{data.classes.product.price}}">{{data.selectedVariant.price}}</span>' +
'<div class="{{data.classes.product.description}}">{{data.description}}</div>' +
'</div>'
},
"classes": {
"details": 'product-details',
},
"styles": {
"details": {
'background-color': 'grey'
}
},
"order": [
'img',
'title',
'price',
'options',
'quantity',
'button',
'details'
],
成功
自己解決いたしました。
以下の記述を追加したら、表示されました。
(orderに'details'を加えました。)
"templates": {
"details": '<div id="{{data.title}}">' +
'<span class="{{data.classes.product.price}}">{{data.selectedVariant.price}}</span>' +
'<div class="{{data.classes.product.description}}">{{data.description}}</div>' +
'</div>'
},
"classes": {
"details": 'product-details',
},
"styles": {
"details": {
'background-color': 'grey'
}
},
"order": [
'img',
'title',
'price',
'options',
'quantity',
'button',
'details'
],
すべてのShopifyアカウントはデフォルトではmyshopify.comのURLと関連付けられており、これはアカウント設定時に使用したビジネス名に基づいて作成されます。しかし、オ...
By Nina_13 Nov 26, 2023このトピックは英語版コミュニティの投稿:Shopify Web Pixel Manager Sandbox FAQの日本翻訳です。
By Mirai Nov 19, 2023Shopifyの管理画面では、商品ごとや配送元のロケーション(倉庫)ごとにカスタム配送料を設定することができます。特に購入金額による送料無料設定は、顧客の購買意欲を高める効果的な手...
By Alex06 Nov 5, 2023