Hi there. I don't know if should make new topic or post in this one. I'm trying to change the checkout steps also. I need the Delivery (step3) to be before Address(step2).
I have found in /controllers/front/OrderController.php the code
->addStep(new CheckoutAddressesStep(
$this->context,
$translator,
$this->makeAddressForm()
));
and change the place it below the delivery step. So far so good. Step3 goes before Step2 as i wish. But there is some address check which is stopping me to proceed from Delivery to Address if i havent login with valid address at first place (no address entered). I can not find that address validation !=0 at Delivery step and make it always true. Can you help me out ? I can provide with a link of needed. Using Prestashop 1.7.3.
EDIT:
In Cart.php class tried this but still not working.
public function checkAndUpdateAddresses() { return true; }
More at this topic How to remove delivery shipping step on prestashop 1.7?
EDIT 2:
I found a way. In AddressValidator.php class set function validateCartAddresses to return false. This why i skip to address check in the chekout.
Any smarter why to rearrange steps2-3 in the checkout ?