- Posts: 44
- Thank you received: 0
Leave only the english names of zones
15 years 4 months ago #16881
by gerard_pp
Leave only the english names of zones was created by gerard_pp
Hello,
In the registration form, i want just leave the english name of all the countries and states, removing the zone_name and the parenthesis.
How can i do that?
In the registration form, i want just leave the english name of all the countries and states, removing the zone_name and the parenthesis.
How can i do that?
Please Log in or Create an account to join the conversation.
15 years 4 months ago #16887
by nicolas
Replied by nicolas on topic Re: Leave only the english names of zones
Hi,
You have 3 solutions:
1. Set the same english name and name in your zones. The system will detect that and won't put the name in parenthesis. It's a good solution if you have a limited number of countries.
2. Do the above automatically by running the query below in your phpMyAdmin:
UPDATE jos_hikashop_zone SET zone_name=zone_english_name WHERE 1;
It's easy to do and you won't have anything to do when you update.
3. Remove the code:
You have 3 solutions:
1. Set the same english name and name in your zones. The system will detect that and won't put the name in parenthesis. It's a good solution if you have a limited number of countries.
2. Do the above automatically by running the query below in your phpMyAdmin:
UPDATE jos_hikashop_zone SET zone_name=zone_english_name WHERE 1;
It's easy to do and you won't have anything to do when you update.
3. Remove the code:
from the file administrator/components/com_hikashop/classes/field.php. That's easy to do but then, when you update HikaShop, you will have to reapply the modification as that file is a core file of HikaShop.if($zone->zone_name_english != $zone->zone_name){
$title.=' ('.$zone->zone_name.')';
}
Please Log in or Create an account to join the conversation.
15 years 4 months ago #16888
by gerard_pp
Replied by gerard_pp on topic Re: Leave only the english names of zones
Thank you very much!!! Second option worked like a charm.
Please Log in or Create an account to join the conversation.
Time to create page: 0.156 seconds