Page 1 of 1

Major error with guest checkout invalid email and phone num

Posted: Wed Sep 11, 2013 4:27 am
by bobmartinusa
Hi,

I have installation of 1.5.5.1 and am getting following error when customer checks out as a guest he is unable to checkout because he is getting error


E-Mail Address does not appear to be valid!
Telephone must be between 3 and 32 characters!

even if buyer is putting correct details.

Same problem is not repeated if buyer chooses register acccount option.

Following is details from error logs

2013-09-10 19:43:09 - PHP Notice: Undefined index: email in /home/store503/public_html/catalog/controller/checkout/guest.php on line 193
2013-09-10 19:43:09 - PHP Notice: Undefined index: telephone in /home/store503/public_html/catalog/controller/checkout/guest.php on line 197

Any help would be welcome, since the site is live currently I have disabled guest checkout option because of this problem

Re: Major error with guest checkout invalid email and phone

Posted: Wed Sep 11, 2013 4:52 am
by rph
It's likely a template issue.

Re: Major error with guest checkout invalid email and phone

Posted: Wed Sep 11, 2013 7:16 am
by bobmartinusa
will you be able to point out how I can resolve the error

Re: Major error with guest checkout invalid email and phone

Posted: Wed Sep 11, 2013 11:48 pm
by rph
Let the person know who created the template.

Re: Major error with guest checkout invalid email and phone

Posted: Fri Sep 27, 2013 3:04 pm
by DWWD
Had a similar problem (with email).

Short answer: was because email now used type=email not type=text

Long answer: http://forum.opencart.com/viewtopic.php?f=20&t=108834

If phone number is sing type=tel, you'd get a similar problem.

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 11, 2013 5:01 pm
by krcok
Hi,
I have exactly same issue.
I could fix the problem of email error, but not telephone...
Did you solve out?

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 18, 2013 12:00 am
by bunnybooboo
I can reproduce this same error in 1.5.6 using the default template. The only way I can fix it is through system > settings > edit > option > guest checkout = no ..to force the customer to register.

This is not ideal. As a customer of other stores myself I can account for how frustrating having to jump through registration hoops is when you just wish to purchase.

Anyone got a fix to correct the guest purchase route?

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 18, 2013 12:34 am
by Cue4cheap
bunnybooboo wrote:I can reproduce this same error in 1.5.6 using the default template. The only way I can fix it is through system > settings > edit > option > guest checkout = no ..to force the customer to register.

This is not ideal. As a customer of other stores myself I can account for how frustrating having to jump through registration hoops is when you just wish to purchase.

Anyone got a fix to correct the guest purchase route?
Was this a fresh install of 1.5.6 or an upgrade? With my fresh install of 1.5.6 I can't reproduce this. Also if there is something specific that you do to reproduce that would be great to know.
Mike

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 18, 2013 1:29 am
by bunnybooboo
Cue4cheap wrote:Was this a fresh install of 1.5.6 or an upgrade? With my fresh install of 1.5.6 I can't reproduce this. Also if there is something specific that you do to reproduce that would be great to know.
Mike
Actually I don't rightly know. I've been working on this startup so long I feel my brain is merging with this computer screen haha. POSSIBLY an upgrade but I'd need some help working out how to find that info.

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 18, 2013 1:42 am
by Cue4cheap
bunnybooboo wrote:
Cue4cheap wrote:Was this a fresh install of 1.5.6 or an upgrade? With my fresh install of 1.5.6 I can't reproduce this. Also if there is something specific that you do to reproduce that would be great to know.
Mike
Actually I don't rightly know. I've been working on this startup so long I feel my brain is merging with this computer screen haha. POSSIBLY an upgrade but I'd need some help working out how to find that info.
Only you or the one who either installed fresh 1.5.6 or did an upgrade from another version would know. I don't know of any residuals that would give you a breadcrumb that you could follow and tell you if it was an upgrade.
Mike

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 18, 2013 1:44 am
by DWWD
I fixed it by modifying checkout.tpl.

In the Ajax calls of $('#button-guest').live('click', ... and $('#button-guest-shipping').live('click', ...

And where you see selectors for input[type=\'text\'] add input[type=\'email\'] and input[type=\'tel\'] for 'data:' parameters.

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 18, 2013 4:20 am
by bunnybooboo
Thanks for jumping in and helping out, the both of you.

Wow that worked brilliantly. Went to the thread you referenced a few posts above as you explained in slightly more detail there. Sorry I didn't initially flag it in my brain as being an answer. Works a treat.

The perfectionist in me can spot the fields aren't highlighted blue like the rest of the fields for address. Nothing major I guess but where would I correct that?

Re: Major error with guest checkout invalid email and phone

Posted: Mon Nov 18, 2013 4:37 am
by DWWD
Not quite sure what you mean. Can you post a screenshot?

Re: Major error with guest checkout invalid email and phone

Posted: Tue Aug 12, 2014 9:37 am
by alfredosimoes
HELP !!!

After installing this extension my checkout is not working if the client ads a product to the basket and checkout as a NEW client.

It gives the following errors:

- E-Mail Address does not appear to be valid!
- Telephone must be between 3 and 32 characters!

I already tried to implement the solution above in checkout.tpl but it does not work for me. May be i am doing sometinh wrong or the problem is different.

Anybody can help, please.

Thanks in advance.

Re: Major error with guest checkout invalid email and phone

Posted: Tue Aug 12, 2014 10:08 am
by alfredosimoes
2014-08-12 2:06:15 - PHP Notice: Undefined index: email in /home/ascmico/public_html/upload/catalog/controller/checkout/register.php on line 142
2014-08-12 2:06:15 - PHP Notice: Undefined index: email in /home/ascmico/public_html/upload/catalog/controller/checkout/register.php on line 142
2014-08-12 2:06:15 - PHP Notice: Undefined index: email in /home/ascmico/public_html/upload/catalog/controller/checkout/register.php on line 146
2014-08-12 2:06:15 - PHP Notice: Undefined index: telephone in /home/ascmico/public_html/upload/catalog/controller/checkout/register.php on line 150

Re: Major error with guest checkout invalid email and phone

Posted: Tue Aug 12, 2014 5:40 pm
by alfredosimoes
SOLVED

ADD #payment-address input[type=\'email\'], #payment-address input[type=\'tel\'], TO SECTION

// Register
$('#button-register').live('click', function() {

AFTER
type: 'post',

data: $('#payment-address input[type=\'text\'], #payment-address input[type=\'email\'], #payment-address input[type=\'tel\'], #payment-address input[type=\'password\'], #payment-address input[type=\'checkbox\']:checked, #payment-address input[type=\'radio\']:checked, #payment-address input[type=\'hidden\'], #payment-address select'),
dataType: 'json',