Page 1 of 3

Guest not asking for email address

Posted: 25 Aug 2022, 17:30
by mnixson
This maybe two different issues. Not sure.

I've discovered that when a guest places an order that the shipping address is not retained (tested only by checking the box that billing and shipping addresses are the same). That may be one issue. In delving into this, I realized that the "guest" is not being asked for their email address which might be part of the problem. When I look at the record details, the user information retains the billing information but no email or shipping address info. How do I cause Phoca to ask for an d retain the email address of a guest and retain the shipping info when the appropriate box is checked.

FYI, my User Options are configured as follows:
Display Edit Profile Yes
Guest Checkout Yes
Guest Checkout (Auto Enable) No
Download - Guest Access No
Enable Review No
Approve Review No

Re: Guest not asking for email address

Posted: 27 Aug 2022, 22:51
by Jan
Hi, in address edit, there needs to be email field which should be set as required.

Image

Jan

Re: Guest not asking for email address

Posted: 28 Aug 2022, 00:13
by mnixson
I was wrong in that the email field is indeed there on the checkout form, however, I see no place in the order where this is displayed. Further I've built some hooks into your database in order to do some reporting, generate queries (in MySQL and MS Access), etc and the table, 'phocacart_order_users' has an email field (this is marked as required in Form Fields) but the guest records have no data. Something is inhibiting collection of this information for guests. Of interest is the fact that the Stripe vendor does retain the email address and that is the only notice I'm getting on guest orders.

Re: Guest not asking for email address

Posted: 28 Aug 2022, 01:07
by Jan
Hi, not sure what do you mean with "guest records", but the email of the guest users is stored in phocacart_oder_users table and such row is related to order ID.

Re: Guest not asking for email address

Posted: 28 Aug 2022, 15:24
by mnixson
By "guest records", I mean records in the 'phocacart_order_users' table that are for guest orders versus registered user orders. Email and address fields are blank - empty. I can send you a CSV file of the table if you like. The email for those records must exist as Stripe is getting that data and my understanding is that Stripe executes after the Phoca records are created. When I make changes to status, e.g pending to shipped, it doesn't email the guest customer and indicates that in the 'Edit Status' dialog.

The question is then, how does this information (email, address) populate these tables because something I did is inhibiting this?

Re: Guest not asking for email address

Posted: 31 Aug 2022, 00:54
by Jan
Hi, if there are no data then something went wrong, are you sure, all data was set when making an order (e.g. are the fields required?). If you ask the guest user for email and the email is required, then it needs to be set in address field and stored in database.

Jan

Re: Guest not asking for email address

Posted: 31 Aug 2022, 19:01
by mnixson
I think I've figured out what is happening just not why. I just tested two orders with guest checkout. In the first, I checked the option "delivery and billing addresses are the same". Before and after saving, the shipping column was not populated. It seems like when the box is checked it should trigger a script copying the info to the shipping box. Consequently when the order was processed, the shipping information in the orders section did not contain any of that; no email, address, nothing. When I processed a second order but manually populated the shipping fields in checkout, it does appear in the shipping address tab under the finished order. In the first instance, neither the customer or me (the vendor) was notified even though the email was definitely in the guest billing information. In the second instance, the customer and me (the vendor) was notified. One thing that is strange is that the email does not appear in the billing or shipping tabs in either test.

Re: Guest not asking for email address

Posted: 04 Sep 2022, 12:28
by Jan
Hi,
One thing that is strange is that the email does not appear in the billing or shipping tabs in either test
Where exactly, in checkout or in order view?

Jan

Re: Guest not asking for email address

Posted: 04 Sep 2022, 15:17
by mnixson
Both. See this link to a screenshot of the Order, Billing tab; https://talos4.net/Order-Billing.png. Note no email listed.

See https://jml.talos4.net/index.php/video- ... 8476da4fd6 for a front end view of the same order, if that is what you are referring to.

Re: Guest not asking for email address

Posted: 09 Sep 2022, 01:25
by Jan
Hi, which version do you use?

If you run 4.0.4, try to update to 4.0.5:
https://github.com/PhocaCz/PhocaCart/re ... 5Beta1.zip

It solves the problem with displaying the email in administration (but this was only design issue and should not have any influence on sending email, etc. :idea: )

Jan