Commit 4fb3443
committed
fix: prevent blocks detection from blocking scripts on order-pay pages
The is_block_checkout_page() method was checking if the main checkout
page uses blocks, which incorrectly prevented classic checkout scripts
from loading on order-pay and add-payment-method pages (which are
always classic, even when main checkout uses blocks).
Added early returns to detect order-pay and add-payment-method pages
and treat them as classic checkout, ensuring card input, card brands,
and payment buttons render correctly.
Fixes issue where card input field and card brands disappeared on
order-pay page when main checkout was using WooCommerce Blocks.1 parent 0efb59f commit 4fb3443
File tree
3 files changed
+12
-0
lines changed- src/Gateways
- Abstracts
- PaymentMethods
3 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
303 | 307 | | |
304 | 308 | | |
305 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
0 commit comments