• Resolved webinbox

    (@webinbox)


    Hello,
    is it possible to place Paypal button before ADD TO CART on single page? Right now its after that button.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @webinbox,

    Yes, you can use these render hooks to modify the button placements.

    The example filter in the documentation actually achieves what you’re looking for:

    add_filter('woocommerce_paypal_payments_single_product_renderer_hook', function() {
        return 'woocommerce_before_add_to_cart_quantity';
    });

    The button is rendered with a flexible layout so if you need to add a margin or reduce the width to accommodate your theme, this could be done by modifying the div with CSS like this:

    .product #ppc-button {
    	margin-bottom: 1em;
    	width:50%
    }

    I hope this helps!

    Kind regards,
    Niklas

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Position of paypal button’ is closed to new replies.