How to relocate paypal button gateway on checkout page in woocommerce

Question

Is it possible to move paypal checkout button to another place on the screen?

enter image description here

Right now the paypal button is on regular gateway form, I would like to move it to woocommerce_checkout_before_customer_details action.

I was at first using the filter below, but it refers only to placing order button and not paypal button.

<?php
    echo apply_filters( 'woocommerce_order_button_html', '<button type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" >test</button>' ); // @codingStandardsIgnoreLine 
?>

How to relocate paypal button gateway on checkout page in woocommerce?

0
Yotam Dahan 3 months 0 Answers 21 views 0

Leave an answer