Jump to content

Edit History

DanielaPetkova

DanielaPetkova

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 ?

DanielaPetkova

DanielaPetkova

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 change steps2-3 in the checkout ?

DanielaPetkova

DanielaPetkova

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. But one more thing. After the change when Step2 countinue button is hit, it goes straight to step4 skiping step3. Where is located the exact link for every step ? I suppose something like order.php?step=3 and order.php?step=4

DanielaPetkova

DanielaPetkova

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?

DanielaPetkova

DanielaPetkova

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;
}

 

DanielaPetkova

DanielaPetkova

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 stoping me to procced from Delivery to Address if i havent login with valid address at first place. If i'm logged it works perfect. I can not find that address validation 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;
}

 

DanielaPetkova

DanielaPetkova

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 stoping me to procced from Delivery to Address if i havent login with valid address at first place. If i'm logged it works perfect. I can not find that address validation 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.

 

DanielaPetkova

DanielaPetkova

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 stoping me to procced from Delivery to Address if i havent login with valid address at first place. If i'm logged it works perfect. I can not find that address validation at Delivery step and make it always true. Can you help me out ? I can provide with a link of needed.


 

DanielaPetkova

DanielaPetkova

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 below the step with the delivery. So far so good. Step3 goes before Step2 as i wish. But there is some address check which is stoping me to procced from Delivery to Address if i havent login with valid address at first place. I can not find that address validation at Delivery step and make it always true. Can you help me out ? I can provide with a link of needed.


 

×
×
  • Create New...