同様のご質問がコミュニティ内にあるようですので、こちらをご覧いただくのが良いかもしれません。
https://community.shopify.com/post/1126983
もし、JSやCSSに慣れていらっしゃるなら、
下記のドキュメントを参考にされると、自由にカスタマイズ可能かと思います。
https://shopify.github.io/buy-button-js/customization/
https://shopify.github.io/buy-button-js/advanced/
具体的にいうと、
購入ボタンのコードのうち下記の部分でCSSカスタマイズが可能です。
options: {
"product": {
"styles": {
"product": {
"@media (min-width: 601px)": {
"max-width": "calc(25% - 20px)",
"margin-left": "20px",
"margin-bottom": "50px"
}
}
},
"text": {
"button": "Add to cart"
}
},
"productSet": {
"styles": {
"products": {
"@media (min-width: 601px)": {
"margin-left": "-20px"
}
}
}
},
"modalProduct": {
"contents": {
"img": false,
"imgWithCarousel": true,
"button": false,
"buttonWithQuantity": true
},
"styles": {
"product": {
"@media (min-width: 601px)": {
"max-width": "100%",
"margin-left": "0px",
"margin-bottom": "0px"
}
}
},
"text": {
"button": "Add to cart"
}
},
"option": {},
"cart": {
"text": {
"total": "Subtotal",
"button": "Checkout"
}
},
私も、実際にカスタマイズをしたことはなく、
上記のドキュメントを見ながら開発ストアで試して、この返信を書いておりまして、
全てを説明するのは難しいのですが、
カート画面の左端のドロップシャドーをやめて、単純なボーダーにしたい。
参考までに、
こちらをどうやるかについてご説明しますと、
質問者様の上記コード部分(私が貼ったものとは質問者様の該当コードは異なるはずです)のうち下記の部分を、
"cart": {
"text": {
"total": "Subtotal",
"button": "Checkout"
}
},
下記のように変更すると実現できます。
"cart": {
"styles": {
"cart": {
"box-shadow": "unset",
"border-left": "1px solid #ccc"
}
},
"text": {
"total": "Subtotal",
"button": "Checkout"
}
},
optionの、templates.detials で DOMを書き換えることも可能なようですので、
慣れれば完全にデザインし直すこともできそうです。
参考になれば幸いです。
(キュー田辺)