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
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