How to change position of Stripe button
-
Hello there.
So i’ve been surfing around on the web trying to figure out how do i change the position of the stripe button.
I want it under my “Add to cart” button (Tilf?j til kurv).
i tried some code which managed to get it after the cart but yeah..
/** Move Stripe Payment Request Button on product page **/
remove_action( ‘woocommerce_after_add_to_cart_quantity’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 1 );
remove_action( ‘woocommerce_after_add_to_cart_quantity’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_separator_html’ ), 2 );add_action( ‘woocommerce_after_add_to_cart_button’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_html’ ), 2 );
add_action( ‘woocommerce_after_add_to_cart_button’, array( WC_Stripe_Payment_Request::instance(), ‘display_payment_request_button_separator_html’ ), 1 );`The page I need help with: [log in to see the link]
- The topic ‘How to change position of Stripe button’ is closed to new replies.