Payment form JS isn't loaded at checkout for free orders
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
调研方向
从 woocommerce/payment-gateway/class-sv-wc-payment-gateway-payment-form.php 第 980 行附近的支付表单 enqueue JS 处理程序开始,然后追踪 checkout AJAX 刷新如何替换支付方式表单。当免费订单变为付费订单后网关字段仍能正常工作,且不会在无关页面加载 JavaScript 时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
godaddy-wordpress/wc-plugin-framework 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 38/100
godaddy-wordpress/wc-plugin-framework#806 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 52/100
-
难度 5/5 一周以上 新手友好度 25/100
-
Google Pay JavaScript
难度 2/5 1-3 小时 新手友好度 35/100
-
i18n Needs Reporter Feedabck
难度 3/5 1-2 天 新手友好度 35/100
godaddy-wordpress/wc-plugin-framework#536 · 1 条评论 ·
查看 godaddy-wordpress/wc-plugin-framework 的全部 Issue
相似的 Issue
-
sync-en
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
UX
难度 2/5 1-3 小时 新手友好度 72/100
ProfessionalWiki/NeoWiki#1573 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 68/100