Has anyone tried this on OC 1.4.8b??
Thanks
Thanks
10% Discount on all Shared and Reseller Hosting Packages at Vidahost.com
Discount Code: DISCOUNT10
Ah yes sorry missed that, thank youJohnathan wrote:Yes, check the post two before yours -- it has a link to a post in the "OpenCart v1.4.8" thread and an attached text file that explains how to do it.
10% Discount on all Shared and Reseller Hosting Packages at Vidahost.com
Discount Code: DISCOUNT10
I've come up with my own solution, and it seems to be working.
I don't like to modify the code if I can help it. The modifications I've made have been fairly small. When I see that big chunks of code have to be replaced or modified to get a certain feature, it makes me uncomfortable.
So what I did was this: I simply added an asterisk before the words "Post Code:" in the language files. Since I put it in, my customers have all inserted their postal code. If in the future a customer doesn't insert it, then I know I can get it from the internet.
(The asterisk is black, not red, but that doesn't really matter. I'll figure out how to make it red eventually.)
This is a low-tech solution, but it is working for me.
I don't like to modify the code if I can help it. The modifications I've made have been fairly small. When I see that big chunks of code have to be replaced or modified to get a certain feature, it makes me uncomfortable.
So what I did was this: I simply added an asterisk before the words "Post Code:" in the language files. Since I put it in, my customers have all inserted their postal code. If in the future a customer doesn't insert it, then I know I can get it from the internet.
(The asterisk is black, not red, but that doesn't really matter. I'll figure out how to make it red eventually.)
This is a low-tech solution, but it is working for me.
To make it red change it too this:Purebeads wrote:I've come up with my own solution, and it seems to be working.
I don't like to modify the code if I can help it. The modifications I've made have been fairly small. When I see that big chunks of code have to be replaced or modified to get a certain feature, it makes me uncomfortable.
So what I did was this: I simply added an asterisk before the words "Post Code:" in the language files. Since I put it in, my customers have all inserted their postal code. If in the future a customer doesn't insert it, then I know I can get it from the internet.
(The asterisk is black, not red, but that doesn't really matter. I'll figure out how to make it red eventually.)
This is a low-tech solution, but it is working for me.
Code: Select all
<span style="color:red;">*</span>
10% Discount on all Shared and Reseller Hosting Packages at Vidahost.com
Discount Code: DISCOUNT10
Chrissy Poo wrote: To make it red change it too this:
Code: Select all
<span style="color:red;">*</span>
The proper way to match the rest would be:
Code: Select all
<span class="required">*</span>
Yep or that
Thanks
Thanks
10% Discount on all Shared and Reseller Hosting Packages at Vidahost.com
Discount Code: DISCOUNT10
Using 1.4.8, opening the file: catalog/controller/account/create.php
I cannot find in the file this content:
if (isset($this->error['city'])) {
$this->data['error_city'] = $this->error['city'];
} else {
$this->data['error_city'] = '';
}
As per the instruction in thread: http://forum.opencart.com/viewtopic.php?f=20&t=6129
Can anyone help with the correct instruction please.
I cannot find in the file this content:
if (isset($this->error['city'])) {
$this->data['error_city'] = $this->error['city'];
} else {
$this->data['error_city'] = '';
}
As per the instruction in thread: http://forum.opencart.com/viewtopic.php?f=20&t=6129
Can anyone help with the correct instruction please.
Using edit / find.... even using only the text "$this->error['city']" and it cannot find it. I've look at every line and the text isn't in this file.
it's there for me..
its right before
if (isset($this->error['country'])) {
its right before
if (isset($this->error['country'])) {
Code: Select all
if (isset($this->error['address_1'])) {
$this->data['error_address_1'] = $this->error['address_1'];
} else {
$this->data['error_address_1'] = '';
}
if (isset($this->error['city'])) {
$this->data['error_city'] = $this->error['city'];
} else {
$this->data['error_city'] = '';
}
if (isset($this->error['country'])) {
$this->data['error_country'] = $this->error['country'];
} else {
$this->data['error_country'] = '';
}
ctellier wrote:Thanks Guys, works great!
This will very great work, in making the post code that required when registering. Thanks for that information with you all guys. This will be very helpful for all of us. I will share this to my friends, I think they need this.
Hello,
I am new to OpenCart. I have set up 1.4.9.1 with the help of CPanel and Hostgator. I am wondering if it is possible to remove some required things during sign up and actually get rid of their boxes altogether. All I need my customers to input are name, email, and password (maybe country, too). Could you help me with this?
I am new to OpenCart. I have set up 1.4.9.1 with the help of CPanel and Hostgator. I am wondering if it is possible to remove some required things during sign up and actually get rid of their boxes altogether. All I need my customers to input are name, email, and password (maybe country, too). Could you help me with this?
Thanks for the help, I have had the same problem, your solution worked perfectly (1.4.7).
If you are looking for the best San Diego car rental service company, Rent From Express is the one. low prices, great service, & friendly customer service.
We are using 1.4.9 on our site, we upgraded recently. We started getting customers who were having problems with registering accounts, and I couldn't figure it out until one of them mentioned that adding a zip code fixed it. So using this thread, I was able to change the files in the catalog/view/theme folder, and now that field has a red asterisks next to it, which should solve the problem.
I did notice that while other required fields will put a red error message if someone tries to register without those fields, that the post code doesn't. So if they don't fill in that field, it doesn't say "This field must be between this and this length." Instead the screen just continually pops back up without a reason why.
Hopefully the added asterisk will solve that problem without needing to do any major fixes. I just wasn't sure why it wasn't popping up the error message.
I did notice that while other required fields will put a red error message if someone tries to register without those fields, that the post code doesn't. So if they don't fill in that field, it doesn't say "This field must be between this and this length." Instead the screen just continually pops back up without a reason why.
Hopefully the added asterisk will solve that problem without needing to do any major fixes. I just wasn't sure why it wasn't popping up the error message.
Hopefully the added asterisk will solve that problem without needing to do any major fixes. I just wasn't sure why it wasn't popping up the error message.
www.order2com.com
brand shoes
www.order2com.com
brand shoes
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
Last edited by InfiniteDezigns on Sun Apr 03, 2011 7:36 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 188 guests