• Resolved steevoluzione

    (@steevoluzione)


    Hi,
    There’s a possibility to swap Billing and Shipping step?
    I would this step:
    1 – Login
    2 – Shipping
    3 – Billling
    4 – Orders
    5 – Payment

    So is it possible to change the function “Shipping to another address?” (…that you have normally on step Billing) to “Billing to another address?”

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Hello,

    yes, you can swap the Billing and Shipping step by adding the following PHP snippet to your child theme’s functions.php file:

    add_filter('wpmc_modify_steps', 'wmsc_shipping_step_last'); 
    if ( !function_exists('wmsc_shipping_step_last') ) {
    	function wmsc_shipping_step_last($steps) { 
    	    $steps['shipping']['position'] = 5;
    	    return $steps;
    	}
    }

    If you don’t feel comfortable adding the PHP snippet to the child theme’s functions.php file, then you can use a plugin similar to Code Snippet. The results will be the same.

    The PHP snippet will only swap the steps, implementing the “Billing to another address?” checkbox can be done with a custom JavaScript code, but that is out of the plugin’s scope. Maybe you can ask around on forums on how to do that or try hiring a developer.

    Thread Starter steevoluzione

    (@steevoluzione)

    Ok thank you for your answer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Swap Billing – Shipping step’ is closed to new replies.