Jump to content

 

KeyGenRus

Member Since 03 Oct 2011
Offline Last Active Jun 05 2012 11:42 AM
-----

#132826 Checkout starting with STEP two (2)

Posted by KeyGenRus on 09 March 2012 - 07:57 AM

You must open the file:
controllers/customer/checkout.php


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


if (empty($edit_step) || empty($completed_steps[$edit_step])) {
// If we don't pass step to edit, open default (from settings)
if (!empty($completed_steps['step_three'])) {
$edit_step = 'step_three';
} else {
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';
}
}

To this:


if (empty($edit_step) || empty($completed_steps[$edit_step])) {
// If we don't pass step to edit, open default (from settings)
if (!empty($completed_steps['step_three'])) {
$edit_step = 'step_two';
} else {
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';
}
}

For me, it's works correctly ;)