Paypal express checkout button positioning

Hi @srpnutratea

Here is an example of how to move the location of the express checkout:

add_action('woocommerce_init', function(){
	$container = PaymentPlugins\WooCommerce\PPCP\Main::container();
	remove_action('woocommerce_checkout_before_customer_details', [$container->get(PaymentPlugins\WooCommerce\PPCP\PaymentButtonController::class), 'render_express_buttons']);
	add_action('woocommerce_before_checkout_form', function() use ($container){
		$container->get(PaymentPlugins\WooCommerce\PPCP\PaymentButtonController::class)->render_express_buttons();
	});				   
}, 50);

Kind Regards

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer