Jump to content

Bug in Guest Checkout "Address" "Invoice address"


Mian Waqas

Recommended Posts

There's is long pending unresolved bug in, i had re produced the bug in PS 1.7.8.0 to PS 1.7.8.7 it exists in multiple domains having fresh installation. this happens when you checkout with guest account. it take you to a page where nothing can be clicked and you have to go back one page, explained in the video.
it happens while creating an address and UNCKECK "Use this address for invoice too" .... another known bug here is that it create duplicate addresses as well. so afterwards when you try to edit any of the invoice as in the video.
it will take you to that dead end page, shown in the first screenshot.
i had checked for this issue on github even i had checked in PS 1.8 beta but there is no know fix for this.

 

 

 

Thanks

Expected behavior

When you edit an invoice/billing address as a guest it should go to the address edit page rather then the dead end page. (also multiple addresses should not be created when you uncheck "use this address for invoice too" )

Steps to reproduce

1. as a guest add a product to cart.

2. Go to checkout page.

3. In login continue as guest.

4. create an address and continue .

5. Go back to addresses and add new address and uncheck "use this address for invoice too" and save it.

6. Again go back to addresses 1st know bug > (you will see duplicates of that addresses).

7. try to edit the selected invoice/billing address there and it will lead you to the dead end page.

8. if you are not able to see the bug at first, Repeat the steps from 5 to 7 and you will see that dead end page.

PrestaShop version(s) where the bug happened

1.7.8.7 PHP version(s)  7.2

Link to comment
Share on other sites

  • 5 months later...

Hello, 
I also had this error when purchasing products as a guest and selecting a different address for the invoice.

I made changes to classes/controller/FrontController.php line 426

if (isset($cart) && (!isset($cart->id_address_delivery) || $cart->id_address_delivery == 0 ||
                    !isset($cart->id_address_invoice) || $cart->id_address_invoice == 0) && $this->context->cookie->id_customer)

Commented/deleted out the condition check
 

 || $cart->id_address_invoice == 0

and the purchase works without problems.
It may be that it causes other errors but I checked it on 2 stores and it works without errors

Link to comment
Share on other sites

44 minutes ago, klifort said:

Hello, 
I also had this error when purchasing products as a guest and selecting a different address for the invoice.

I made changes to classes/controller/FrontController.php line 426

if (isset($cart) && (!isset($cart->id_address_delivery) || $cart->id_address_delivery == 0 ||
                    !isset($cart->id_address_invoice) || $cart->id_address_invoice == 0) && $this->context->cookie->id_customer)

Commented/deleted out the condition check
 

 || $cart->id_address_invoice == 0

and the purchase works without problems.
It may be that it causes other errors but I checked it on 2 stores and it works without errors

Hi,

Many thanks for this @klifort , i will test this and will update you what happens.

 

Regards

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...