• Resolved pktb

    (@peaktanning)


    Hi,

    I can’t find an option in the plugin (v3.5.4) to move the Express button on the cart? I found the following code but it does not seem to work? Is this code correct?

    if (
        class_exists('WC_Gateway_Clearpay') &&
        method_exists('WC_Gateway_Clearpay', 'getInstance') &&
        method_exists(WC_Gateway_Clearpay::getInstance(), 'render_cart_page_elements')
    ) {
        remove_action( 'woocommerce_cart_totals_after_order_total', array(WC_Gateway_Clearpay::getInstance(), 'render_cart_page_elements'), 10, 0 );
        add_action( 'woocommerce_after_cart_totals', array(WC_Gateway_Clearpay::getInstance(), 'render_cart_page_elements'), 10, 0 );
    }

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter pktb

    (@peaktanning)

    I’ve managed to work it out so marked as resolved. Needed to add it to functions.php rather than using a snippet plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Move the Express Checkout cart button’ is closed to new replies.