Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter srpnutratea

    (@srpnutratea)

    Plugin Author Clayton R

    (@mrclayton)

    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

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

The topic ‘Paypal express checkout button positioning’ is closed to new replies.