Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Payment form JS isn't loaded at checkout for free orders

オープン
#326 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php, wordpress
領域
frontend, payments

調査の方向性

woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php の980行目付近にある支払いフォームの enqueue JS ハンドラーから始め、checkout の AJAX 更新によって支払い方法フォームがどのように置き換えられるかを追跡します。無料注文が有料になる場合でもゲートウェイフィールドが機能し、関係のないページでは JavaScript が読み込まれなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

Bug Payment Gateway

When an order starts out as free at checkout, core doesn't render the payment methods UI. If the customer updates checkout, like choosing a new shipping method and $$$ needs to be charged, core refreshes checkout and ends up rendering the our gateway payment fields.

However, the way we enqueue the payment form JS handler means it'll only be present on initial page load, and not come along with any AJAX refreshes.

We'll need to change how we enqueue the JS so that it's present in the payment method form UI itself, or figure out some other way to load it on refresh.

  • Report from: HS convo 94602 would like for the JavaScript to not show up on all their pages.
主要言語
PHP
スター
146
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

godaddy-wordpress/wc-plugin-framework のほかの issue

godaddy-wordpress/wc-plugin-framework の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。