• Resolved Knightofmoon

    (@billy2200)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Abhi G. a11n

    (@theabhig)

    Hi 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).

    We’re usually limited in the support we can offer for custom CSS and code but if you can clarify the below for me please, we can at least start to point you in the right direction.

    I am looking at your site and this is what I see when viewing your site presently – do you mean you would like the red button to be directly below the ‘Add to cart’ button?


    Link to image: https://d.pr/i/CcVqTl

    Also please note that as your site is responsive, this layout changes on different screen sizes:


    Link to image: https://d.pr/i/NpTAG3

    Therefore while we may be able to provide some support or guidance on customizing the look of the button, your theme developers may be best placed to assist with configuring the specific layout you’re looking for.

    I can see it is the Ekommart theme and have included a link to their support page below as well:
    https://themeforest.net/item/ekommart-allinone-ecommerce-wordpress-theme/25893445/support

    If you can confirm the specific layout you’re looking for in a bit more detail, we can help at least point you to the best place to get this resolved.

    Thanks!

    Plugin Support Abhi G. a11n

    (@theabhig)

    Hi there!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change position of Stripe button’ is closed to new replies.