Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#326 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php, wordpress
Ambito
frontend, payments

Direzione di ricerca

Inizia in woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php, intorno all’handler JS di enqueue del modulo di pagamento alla riga 980, quindi traccia il modo in cui gli aggiornamenti AJAX del checkout sostituiscono il modulo del metodo di pagamento. Il lavoro è completato quando i campi del gateway funzionano dopo che un ordine gratuito diventa a pagamento, senza caricare il JavaScript su pagine non correlate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
PHP
Stelle
146
Fork
43
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di godaddy-wordpress/wc-plugin-framework

Tutte le issue di godaddy-wordpress/wc-plugin-framework

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.