Forums / General Questions / Shoppers cant create an account - The Coutry won't stick

Shoppers cant create an account - The Coutry won't stick

Locked

Views: 2,027

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
19 Jun 2007, 11:01 PM
#1
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Shoppers cant create an account - The Coutry won't stick

Users can fill out the the customer info form but get an error the following error message:

"You must select a country from the Countries pull down menu."

The country is being selected... not sure how to fix this.

20 Jun 2007, 12:47 AM
#2
rollingsphere avatar

rollingsphere

New Zenner

Join Date:
Jun 2006
Location:
texas
Posts:
16
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

PastGenToys:

Users can fill out the the customer info form but get an error the following error message:

"You must select a country from the Countries pull down menu."

The country is being selected... not sure how to fix this.

Im having this exact same problem. Have you been able to figure out a fix yet? Anyone? Ive tried turning on/off the default country as USA, and ive deleted all the countries out of the database except for USA, but its still giving me that same error when trying to create an account.

www.mad4wd.com

20 Jun 2007, 3:47 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Shoppers cant create an account - The Coutry won't stick

This is a common problem for folks who have done a site upgrade but missed upgrading some files or parts of files. ... esp if they didn't upgrade their customized template files, etc.

What version did you upgrade from? and to?
What exact procedures did you follow to perform that upgrade?
What customizations exist on your site?
What addons/contributions do you have installed?
Did you build your own template, or have you purchased one? or did you use and adapt a free one? What version was it designed for?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Jun 2007, 5:15 AM
#4
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

DrByte,

I am glad to have a doctor in the house!

My zen cart is new and is version Zen Cart 1.3.7 with Database Patch Level: 1.3.7

I recently had a stylesheet issue that caused me to have a someone repair whatever damage. I tried to make a change in the file and distorted my whole site and blew away the header.

The site was put back together, visually, (minus a minor header problem) that is obvious when looking at the site. Since then I have noticed this issue, the header issue and the shipping estimator is also broke. All worked fine before my stylesheet goof up. I dont think any real customizing was done other than adding google check out. Do you think you can help? Thanks!

https://www.pastgenerationtoys.com

20 Jun 2007, 5:20 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Shoppers cant create an account - The Coutry won't stick

PastGenToys:

other than adding google check out.Did it work before adding the Google Checkout beta code?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Jun 2007, 5:35 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Shoppers cant create an account - The Coutry won't stick

Your template has smatterings of indicators suggesting it was designed for an older version of Zen Cart. Most are probably not a problem. The presenting issue for the create-account area is probably caused by this:

Your tpl_modules_create_account.php template has bad content in it .... probably from the Google Checkout or maybe another mod you've installed or code you've copied from the forum

Your page is generating this:<label class="inputLabel" for="state">State/Province:</label> <input [B]type="id="state""[/B] name="state" value=" " size = "33" maxlength = "32" /><span class="alert">*</span><br class="clearBoth" />when it should be doing this:```
<label class="inputLabel" for="state" [B]id="stateLabel"[/B]>State/Province:</label>
<input [B]type="text"[/B] name="state" value="" size = "33" maxlength = "32" [B]id="state" [/B]/> <span class="alert" id="stText">*</span>[B]<input type="hidden" name="zone_id" value="0" />[/B]<br class="clearBoth" />


Similar for country information:```
<select name="[B]country[/B]" id="country">
```vs this:```
<select name="[B]zone_country_id[/B]" id="country" >

Thus, the code you should have in that file (which you can check by looking at the original version of that file in v1.3.7) is incorrect. If you obtained a copy of that file as part of a contribution and put it in your template override folder, you'll need to upgrade it to work with v1.3.7 by comparing the v1.3.7 content with what's in it, and adjusting accordingly.

WinMerge is a handy tool for that.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Jun 2007, 5:43 AM
#7
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

I had someone build the store for me and then fix the issue I mentioned before so I really don't know what has been done? I will use the tool to perform a diff and se what I can do to fix it. Where would I get a good v1.3.7 tpl_modules_create_account.php file?

Hey Doc - In the case I cant get this working do you make house calls?:smile:

20 Jun 2007, 6:41 AM
#9
rollingsphere avatar

rollingsphere

New Zenner

Join Date:
Jun 2006
Location:
texas
Posts:
16
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

DrByte:

This is a common problem for folks who have done a site upgrade but missed upgrading some files or parts of files. ... esp if they didn't upgrade their customized template files, etc.

Thanks! i simply replaced the tpl_modlues_create_account.php file that was under my custom template folder with the standard file and it worked for me.


www.mad4wd.com

20 Jun 2007, 1:18 PM
#10
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

I found that file in the following path:

/includes/templates/template_default/templates/tpl_modules_create_account.php

Where else would I find it? If you replaced it and it worked I am hoping I can do the same I just dont know where to look...

20 Jun 2007, 1:36 PM
#11
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

DrByte,

Where do I find the file that has the bad content? Thanks

20 Jun 2007, 1:45 PM
#12
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

Doc - I used the Developed Toolkit and was able to search for the file. It's only showing up in the one location and it doesnt include the bad content that you showed before.

I have no clue as to where the other file exists...

20 Jun 2007, 1:49 PM
#13
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

Fixed it! I added tpl_modlues_create_account.php under my custom folder and all is now working!

one problem down - two to go!

20 Jun 2007, 1:55 PM
#14
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Shoppers cant create an account - The Coutry won't stick

This actually fixed the shipping estimator problem as well!

2 probs down - 1 header issue to go!

Thanks to all! PGT