Page 1 of 1

Guest checkout and register checkout not sharing filled out information

Posted: Tue Nov 21, 2023 3:18 am
by supak111
Why don't Guest checkout and Register checkout share filled out information?

So I just realized that if you go to GUEST checkout on OC3 and you fill out all the info (name, email, phone number, address) and you make it all the way down to say STEP-6, at this point let say I chanted my mind and would like to do a Register checkout instead...

So at this point you would click on STEP-1, then click "Register Account"
BUT all the previously filled out information (name, email, phone number, address) are all gone! Only ZIP CODE, and STATE are remembered

~ Why wouldn't it remember everything over from Guest checkout?
~ Is this normal for OC 3.0.3.2 or a bug on my end?
~ And is there any way to make it share information between the 2?

Re: Guest checkout and register checkout not sharing filled out information❓

Posted: Tue Nov 21, 2023 5:53 pm
by ADD Creative
That is the way OpenCart 3.0.x works.

You would need to look and modify the following files to work out if you could use more of the guest values.
catalog/controller/checkout/guest.php
catalog/controller/checkout/register.php

Re: Guest checkout and register checkout not sharing filled out information❓

Posted: Tue Nov 21, 2023 10:07 pm
by supak111
Oh ok thank you for the reply, above all I wanted to make sure it wasn't a bug on my end from some extension I have installed.

This would be very useful. I pretty amateur at writing complex code, I can do simple OC/VQmods though so I guess I'll take a look.

Sounds like a good extension too me and I do not see anything similar available

Re: Guest checkout and register checkout not sharing filled out information❓

Posted: Wed Nov 22, 2023 8:10 pm
by paulfeakins
supak111 wrote:
Tue Nov 21, 2023 10:07 pm
This would be very useful. I pretty amateur at writing complex code, I can do simple OC/VQmods though so I guess I'll take a look.
It probably wouldn't be too hard to do this with JavaScript.

Re: Guest checkout and register checkout not sharing filled out information

Posted: Thu Nov 23, 2023 6:05 am
by supak111
I wish I knew how to do it, anyone good a javascript willing to take a shot?

Re: Guest checkout and register checkout not sharing filled out information

Posted: Fri Nov 24, 2023 12:16 am
by paulfeakins
supak111 wrote:
Thu Nov 23, 2023 6:05 am
I wish I knew how to do it, anyone good a javascript willing to take a shot?
We're so busy with client work we don't have the time but you could ask ChatGPT with a prompt something like:

"Here is a form on a website for user details, but there is another hidden form with similar details depending on if the user wants to register of checkout as a guest. Write a JavaScript function for me that makes sure the hidden fields are filled in when the user fills in the shown fields."

And perhaps paste in the HTML for both forms so it knows the input names.