Smart Payment Buttons not working on Cart page
-
https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/581
I’ve done some debugging and it appears the registering of the script happens AFTER the script is attempted to be enqueued.
The following action fires first
add_action( 'woocommerce_proceed_to_checkout', array( $this, 'display_paypal_button' ), 20 );
This action fires AFTER the above however the above attempts to enqueue
wp_enqueue_script( 'wc-gateway-ppec-smart-payment-buttons' );
while the below registers
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Smart Payment Buttons not working on Cart page’ is closed to new replies.