← All changes
|
modules/checkout/classes/layouts/class-cartflows-instant-checkout.php
+2
-1
3.1.1
→
3.3.0
View file →
| @@ -123,9 +123,10 @@ | ||
| 123 | 123 | remove_action( 'woocommerce_before_checkout_form_cart_notices', 'woocommerce_output_all_notices', 10 ); |
| 124 | 124 | remove_action( 'woocommerce_before_checkout_form', 'woocommerce_output_all_notices', 10 ); |
| 125 | 125 | |
| 126 | 126 | // Change the structure of the checkout form. |
| 127 | - add_action( 'woocommerce_checkout_before_customer_details', array( $this, 'instant_checkout_wrapper_start' ), 10, 1 ); | |
| 127 | + // Bind to the CartFlows-owned action (fired before WC's own) so the wrapper opens before third-party output (e.g. Official Stripe Express Checkout) on woocommerce_checkout_before_customer_details. | |
| 128 | + add_action( 'cartflows_checkout_before_customer_details', array( $this, 'instant_checkout_wrapper_start' ), 10, 1 ); | |
| 128 | 129 | add_action( 'woocommerce_checkout_after_customer_details', array( $this, 'order_review_wrapper_start' ), 15, 1 ); |
| 129 | 130 | |
| 130 | 131 | // Rarrange the payment section. |
| 131 | 132 | remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 ); |