Community Forums

How can I make the "postcode" required when registering?

General support for technical problems with OpenCart v1.x

Re: How can I make the "postcode" required when registering?

Postby InfiniteDezigns » Sat Apr 02, 2011 11:34 pm

InfiniteDezigns wrote:QPhoria:

Although it's added, there still doesn't show a red asterix next to the zipcode at all and the customers aren't filling it out. I need to change the word from post code to Zip code and also need the Asterix next to it. Any suggestions?


http://www.dyelyfe.com/Store



I just ended up hacking it with the red Astrix. And changed the word post code to zip code. It looks perfect. But I hope this will be fixed in the upcoming 1.5 v of Opencart.
InfiniteDezigns
 
Posts: 28
Joined: Sun Jun 20, 2010 9:18 pm

Re: How can I make the "postcode" required when registering?

Postby i2Paq » Sun Apr 03, 2011 4:04 pm

InfiniteDezigns wrote:
Qphoria wrote:YOU DO NOT NEED TO APPLY THIS MOD IN 1.4.9 OR LATER AS IT HAS ALREADY BEEN ADDED AND AUTOMATICALLY REQUIRES BASED ON THE COUNTRY!



QPhoria:

Although it's added, there still doesn't show a red asterix next to the zipcode at all and the customers aren't filling it out. I need to change the word from post code to Zip code and also need the Asterix next to it. Any suggestions?


http://www.dyelyfe.com/Store



I just ended up hacking it with the red Astrix. And changed the word post code to zip code. It looks perfect. But I hope this will be fixed in the upcoming 1.5 v of Opencart.



That has nothing to do with Opencart but with the custom template your using!
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9748
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: How can I make the "postcode" required when registering?

Postby i2Paq » Sun Apr 03, 2011 4:08 pm

YOU DO NOT NEED TO APPLY THIS MOD IN 1.4.9 OR LATER AS IT HAS ALREADY BEEN ADDED AND AUTOMATICALLY REQUIRES BASED ON THE COUNTRY!

IF YOU USE A CUSTOM THEME YOU MAY HAVE TO MODIFY SOME OF THE THEME FILES!!!
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

First Things First: Opencart Check List.
Documentation: Our Documentation section.
BUGs?: Known BUGS for All OC Versions.

Problemen met de BTW?: [How to] BTW + Verzend & betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 9748
Joined: Mon Nov 09, 2009 11:00 am
Location: Winkel - The Netherlands

Re: How can I make the "postcode" required when registering?

Postby InfiniteDezigns » Mon Apr 04, 2011 5:28 pm

i2Paq wrote:YOU DO NOT NEED TO APPLY THIS MOD IN 1.4.9 OR LATER AS IT HAS ALREADY BEEN ADDED AND AUTOMATICALLY REQUIRES BASED ON THE COUNTRY!

IF YOU USE A CUSTOM THEME YOU MAY HAVE TO MODIFY SOME OF THE THEME FILES!!!


Then post once again what has to change in the Theme files?
InfiniteDezigns
 
Posts: 28
Joined: Sun Jun 20, 2010 9:18 pm

Re: How can I make the "postcode" required when registering?

Postby ImogenLockhart123 » Thu Aug 11, 2011 2:45 am

Thanks for the help, I have had the same problem, your solution worked perfectly (1.4.7). O0
Tomorrow is another day.
Tera Gold
Tera Money
ImogenLockhart123
 
Posts: 1
Joined: Thu Aug 11, 2011 2:43 am

Re: How can I make the "postcode" required when registering?

Postby jimquim » Sun Aug 14, 2011 8:37 pm

ok how would i get rid of the Your Address field altogether and have them not required is this possible?

Your Address
Company:
* Address 1:
Address 2:
* City:
* Post Code:
* Country:
* Region / State:
jimquim
 
Posts: 8
Joined: Sun Aug 14, 2011 3:28 pm

Re: How can I make the "postcode" required when registering?

Postby webfeetdesign » Mon Aug 22, 2011 1:34 pm

Hi, ages ago I did this process for a client but only did it for new account register. I forgot to do it for the guest checkout. Is there a way of doing this? What are the files I would need to change?

The version of my opencart got removed (Don't ask me how!) is there a way of finding out? This will help me decide which code to use.

Cheers

It's sorted now, backtracked. Still not sure how to find the version though.
webfeetdesign
 
Posts: 82
Joined: Thu Feb 04, 2010 5:28 pm
Location: Newcastle Upon Tyne

Re: How can I make the "postcode" required when registering?

Postby netpaydays » Tue Mar 13, 2012 6:32 am

This works on the "initial" customer setup BUT If you add extra or multiple locations to that users account the zip code field is "not" a required field in that situation. Can you revise this post to make the zip code a required field when adding multiple locations to a user account as well?
netpaydays
 
Posts: 2
Joined: Tue Mar 13, 2012 6:29 am

Re: How can I make the "postcode" required when registering?

Postby javabean » Fri Sep 07, 2012 5:10 am

i'm currently running 1.5.4.1 and it postcode isn't a requirement for USA and Canada but in real operations this is definitely needed. it does apply the requirement if the country is united kingdom. any ideas on how to fix this so it is required for USA and Canada? Thanks
javabean
 
Posts: 19
Joined: Tue Aug 28, 2012 6:11 pm

Re: How can I make the "postcode" required when registering?

Postby JohnOC » Fri Sep 07, 2012 2:33 pm

@javabean: Select YES in your Admin -> System -> Localization -> Country -> United States -> Zip Code Required.

Do the same for Canada.
JohnOC
 
Posts: 6
Joined: Thu Aug 09, 2012 6:19 pm

Re: How can I make the "postcode" required when registering?

Postby javabean » Fri Sep 07, 2012 2:48 pm

AWESOME! fixed it. thanks for the heads up. i should've looked closer. :)
javabean
 
Posts: 19
Joined: Tue Aug 28, 2012 6:11 pm

Re: How can I make the "postcode" required when registering?

Postby robzcuy » Sat Nov 24, 2012 5:24 am

Hi i have a question about "postal code" or something about it.. right now i'm developed an online shop using open cart, and when i try to use menu register, the register step is success but i cant login with my account that i previously made.. its on : http://www.netoneshop.com/index.php?rou ... t/register

And theres something strange, when my browser ask me to remember my password, it didnt remember my email, instead its remember my POSTAL CODE.. :-\
Image

and when i try to logging in...... :(
Image

i cant logging in even i input my correct email address and password, looks like the browser remember my postal code, not my email, or theres something broken on my open cart controller?? :-[ :-[ :-[ :-[ :-[

anybody can help me? please im a dead man walking now -____________-
robzcuy
 
Posts: 10
Joined: Sat Nov 24, 2012 5:03 am

Re: How can I make the "postcode" required when registering?

Postby vntgeclassified » Mon Jan 07, 2013 1:31 am

I recently purchased the Shoppa Theme and the Post codd shows as mandatory for the UK but not for the US, I'm using version 1.5.4, can you tell me how to correct this.
vntgeclassified
 
Posts: 10
Joined: Sun Jan 06, 2013 7:23 pm

Re: How can I make the "postcode" required when registering?

Postby sunster » Thu Jan 17, 2013 7:48 pm

@vntgeclassified Not sure if you are still looking for an answer, but it's a few posts above yours.

Thanks @JohnOC I came here looking for that answer
sunster
 
Posts: 20
Joined: Wed Sep 26, 2012 7:25 pm

Re: How can I make the "postcode" required when registering?

Postby vntgeclassified » Tue Jan 29, 2013 11:34 pm

SOLVED Thank You, Overlooked option in System/Localization/Countries in the Admin Panel.
vntgeclassified
 
Posts: 10
Joined: Sun Jan 06, 2013 7:23 pm

Re: How can I make the "postcode" required when registering?

Postby admin0902 » Mon Mar 11, 2013 6:04 am

This is the fast way:

Just add <font color="red">*</font>, in the php!
admin0902
 
Posts: 2
Joined: Sat Feb 09, 2013 2:57 pm

Re: How can I make the "postcode" required when registering?

Postby innocrea » Mon May 06, 2013 8:56 pm

All you guys are doing so difficult with editing source files etc. You don't have to do ANYTHING of this.

If you want to set postcode required the only thing you have to do is run the following SQL command:
Code: Select all
UPDATE oc_country SET `postcode_required` =1;


That's it!
innocrea
 
Posts: 12
Joined: Wed Oct 10, 2012 5:00 pm

Previous

Return to General Support

Who is online

Users browsing this forum: ahmadka, cars111, KoHkureHt, neb120, opencartArab, peteVA, stokp1, tdubs and 71 guests

Hosted by Arvixe Web Hosting