Checkout starting with STEP two (2)

You must open the file:

controllers/customer/checkout.php





At the line ~ 913-920, you must edit this code:




<br />
if (empty($edit_step) || empty($completed_steps[$edit_step])) {<br />
// If we don't pass step to edit, open default (from settings)<br />
if (!empty($completed_steps['step_three'])) {<br />
$edit_step = 'step_three';<br />
} else {<br />
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';<br />
}<br />
}
```<br />
<br />
To this:<br />
<br />
<br />
```php
<br />
if (empty($edit_step) || empty($completed_steps[$edit_step])) {<br />
// If we don't pass step to edit, open default (from settings)<br />
if (!empty($completed_steps['step_three'])) {<br />
$edit_step = 'step_two';<br />
} else {<br />
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';<br />
}<br />
}
```<br />
<br />
For me, it's works correctly <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)">

Works so far now just have to figure out how to get rid of the annoying notice box that says "The Profile data has been updated successfully each time you go from Step 2 to Step 3. Anyone know how to do this?

[size=3][font=verdana,geneva,sans-serif]This text comes from the language variable: [color=#ff0000]text_profile_is_updated[/color][/font][/size]



[size=3][font=verdana,geneva,sans-serif]By searching through the files in CS-Cart v3.0.2, I found this is used in the following file:[/font][/size]



[size=3][font=verdana,geneva,sans-serif]…\core\fn.users.php @ Line 1372[/font][/size]

[size=3][font=verdana,geneva,sans-serif]fn_set_notification('N', fn_get_lang_var('information'), fn_get_lang_var('text_profile_is_updated'));[/font][/size]

[size=3][font=verdana,geneva,sans-serif]You could add a few extra conditions to this by enabling {debug} and jumping to Step 2/3 and seeing what is set and then if the condition is xyz, then exit and skip this line.[/font][/size]



[size=3][font=verdana,geneva,sans-serif]Good luck and please share your progress.[/font][/size]



[size=3][font=verdana,geneva,sans-serif]Cheers,[/font][/size]

Thanks I'll check it out.

Im actually making an addon at the moment and will release once ive also done my addon store, will remove step 1 and will remove step 4 if 1 external payment gateway exists

Don't see any change in behaviour after change. Please advise?



An add-on would be a great solution

This is not happening in 3.0.6, anyone have a fix?

If anyone is interested i have made an addon that is just 2 steps, customer details and shipping / payment… has lots of features and was not going to sell but if interested give me a msg

I just tried this on version [font=“Times New Roman”][size=“3”][color=“#000000”]3.0.6 PROFESSIONAL (upgraded from version 1.x) and it works great. Just need to follow the instructions exactly. [/color][/size][/font]

works perfectly for me in v4.2.3

great for repeat customers who often have orders drop shipped to different addresses. The default behavior of jumping to step 3 made that more confusing. Jumping to step 2 solves it.

its doesnt work with 4.6.2 how can i fix this ?

Need this for 4.9.3, anyone???

In the latest versions you can disable first step here

Settings -> Checkout -> Configure "Sign in" step

Do not forget to check instructions in the tooltip

Thanks but that is not my problem

Cscart skips asking for addresses if the user is logged in.

I would like it NOT to skip the address entry ( step 2)

Try the following solution

https://forum.cs-cart.com/topic/35116-checkout-steps/#entry182970

Note: after the changes are applied, you should clear cookies in the browser to check the result