# Shopify Plusのチェックアウトページのカスタマイズについて

**URL:** <https://community.shopify.com/t/shopify-plus/147591>\
**Category:** 技術的なQ＆A\
**Created:** [August 31, 2022, 2:17am UTC](https://community.shopify.com/t/shopify-plus/147591 "2022-08-31T02:17:15Z")\
**Posts on this page:** 6\
**Page:** 1

## AI-generated summary

Shopify Plusのチェックアウトで、配送方法に応じて利用可能な決済手段を切り替えられるかが議題。

- 要件: 配送方法A/Bを選択し、Aはクレジットのみ、Bはクレジット＋代引きを許可。
- 初期見解: Shopify標準仕様では配送方法や商品単位で決済手段を制御できず、基本プランでは対応不可との指摘。
- 反対意見・最新更新: Shopify PlusのScript Editor（Shopify Scripts＝チェックアウト時の決済・配送ロジックをRubyで制御する機能）なら実現可能との回答。ShippingRate.nameに応じてPayment Gatewaysをフィルタリングするコード例が提示され、条件に応じて特定の決済手段を非表示にできる旨を説明。
- 技術補足: コードスニペットが理解の中心。配送方法名に一致した場合、特定のゲートウェイ（例: Shopify Payments や代引き）を除外するロジック。
- 追加質問: 別スレの機能もScriptsで対応可能かの問いに、回答済みと報告。
- 結果・ステータス: Shopify PlusならScriptの活用で要件を満たせるとの結論。関連質問も解決済み。スレッドは事実上クローズ。

<div class="post-metadata">

**Author:** ![Taito](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/taito/32/263981_2.png) [@Taito](https://community.shopify.com/u/Taito)\
**Post date:** [August 31, 2022, 2:17am UTC](https://community.shopify.com/t/shopify-plus/147591/1 "2022-08-31T02:17:15Z")

</div>

お世話になります。

Shopify Plusにした場合、以下のような要件はカスタマイズで可能でしょうか？

よろしくお願いいたします。

▼配送方法２つ（A, B）から選択

▼Aを選んだ場合は、クレジット決済のみ。Bを選んだ場合は、クレジットと代引き決済可能

何卒よろしくお願いします。

---

<div class="post-metadata">

**Author:** ![\_osamu\_iwasaki](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/_osamu_iwasaki/32/272617_2.png) [@\_osamu\_iwasaki](https://community.shopify.com/u/_osamu_iwasaki)\
**Post date:** [August 31, 2022, 4:16am UTC](https://community.shopify.com/t/shopify-plus/147591/2 "2022-08-31T04:16:07Z")

</div>

残念ながら、Shopifyの仕様では配送方法や特定の商品ごとに固有の決済方法をご提案することは出来ないため、完全にご期待に添えるご案内をすることは出来ません。

Script Editorで可能かと思いましたが、  
他のディスカッションを見る限り、出来ないみたいです。

[https://community.shopify.com/topic/1189221](https://community.shopify.com/topic/1189221)

---

<div class="post-metadata">

**Author:** ![Anonymous\_44fbe07fc59d9ccaacd70575fd5a5155](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/anonymous_44fbe07fc59d9ccaacd70575fd5a5155/32/194200_2.png) [@Anonymous\_44fbe07fc59d9ccaacd70575fd5a5155](https://community.shopify.com/u/Anonymous_44fbe07fc59d9ccaacd70575fd5a5155)\
**Post date:** [August 31, 2022, 12:04pm UTC](https://community.shopify.com/t/shopify-plus/147591/3 "2022-08-31T12:04:25Z")

</div>

Taito様

はじめまして、フルバランスの角間です。

ご質問を確認いたしました。

特に基本のShopifyプランでは配送の要望が解決できず、パートナーとしてもどかしい

部分がありますね。

\_osamu\_iwasaki\_さんがご紹介されているURLは非常に参考になりますが、

ShopifyではNGという内容かと思います。\_osamu\_iwasaki\_さんもご紹介をされていますが、

Script Editor(Shopify Script)を活用すればご要望の対応は可能ですし、同種のコードで

よろしければ、弊社でも開発の実績が複数ございます。

参考までに想定されるコード例を記載いたします。

```ruby
Output.payment_gateways = Input.payment_gateways.delete_if do |payment_gateway|
  if Input.ShippingRate.name == "xxxx"
    payment_gateway.name == "Shopify Payments"
  end
end

```

ご参考になりましたでしょうか。

私たちの励みにもなりますので、  
お役に立てていればBest Answerボタンを押して頂ければ嬉しいです。

分からない点があれば、またいつでもご連絡ください。

フルバランス 角間

---

<div class="post-metadata">

**Author:** ![Taito](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/taito/32/263981_2.png) [@Taito](https://community.shopify.com/u/Taito)\
**Post date:** [August 31, 2022, 12:29pm UTC](https://community.shopify.com/t/shopify-plus/147591/4 "2022-08-31T12:29:13Z")

</div>

株式会社フルバランス 角間様

お世話になります。

詳細まで、ご返信ありがとうございます。

Script Editor(Shopify Script)を活用すれば可能ということですが、

以下の機能も、Script Editorの活用で満たせますでしょうか？

お忙しいところ大変恐縮ですが、何卒よろしくお願いいたします。

[https://community.shopify.com/topic/1718273](https://community.shopify.com/topic/1718273)

---

<div class="post-metadata">

**Author:** ![Anonymous\_44fbe07fc59d9ccaacd70575fd5a5155](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/anonymous_44fbe07fc59d9ccaacd70575fd5a5155/32/194200_2.png) [@Anonymous\_44fbe07fc59d9ccaacd70575fd5a5155](https://community.shopify.com/u/Anonymous_44fbe07fc59d9ccaacd70575fd5a5155)\
**Post date:** [September 1, 2022, 2:46pm UTC](https://community.shopify.com/t/shopify-plus/147591/5 "2022-09-01T14:46:03Z")

</div>

該当スレッドに対して回答を致しました！恐らく双方解決できているかと存じますので、

よろしければBA設定を頂けると嬉しいです。

---

<div class="post-metadata">

**Author:** ![Taito](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/taito/32/263981_2.png) [@Taito](https://community.shopify.com/u/Taito)\
**Post date:** [September 1, 2022, 4:13pm UTC](https://community.shopify.com/t/shopify-plus/147591/6 "2022-09-01T16:13:08Z")

</div>

ご回答いただきありがとうございました！
