• Resolved azencytech

    (@azencytech)


    Is it possible to move shipping address to first step and then billing address to second? I did not see any options to do so.

    Thank You,

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Diana Burduja

    (@diana_burduja)

    Hello,

    you can switch the billing and the shipping step by adding the following PHP snippet to your child theme’s functions.php file (or use a plugin similar to Code Snippets):

    if ( ! function_exists( 'wmsc_billing_after_shipping' ) ) {
    function wmsc_billing_after_shipping( $steps ) {
    $steps['billing']['position'] = 25;
    return $steps;
    }
    }
    add_filter( 'wpmc_modify_steps', 'wmsc_billing_after_shipping' );

    If you need to have the “Shipping to another address?” checkbox checked by default, then that can be done by adding the following PHP snippet to your website:

    add_filter( 'woocommerce_ship_to_different_address_checked', '__return_true' );

Viewing 1 replies (of 1 total)
  • The topic ‘Move billing and shipping fields.’ is closed to new replies.