Post by supak111 » Tue Nov 21, 2023 3:18 am

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?

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by ADD Creative » Tue Nov 21, 2023 5:53 pm

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

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by supak111 » Tue Nov 21, 2023 10:07 pm

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

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by paulfeakins » Wed Nov 22, 2023 8:10 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by supak111 » Thu Nov 23, 2023 6:05 am

I wish I knew how to do it, anyone good a javascript willing to take a shot?

~ OC 3.0.3.2 and OCmods only ~


User avatar
Active Member

Posts

Joined
Fri Feb 13, 2015 12:09 pm

Post by paulfeakins » Fri Nov 24, 2023 12:16 am

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 27 guests