Skip to main content

How to hide the translations on the countries dropdown

More
9 years 2 weeks ago #278220 by PeterChain
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.0
-- PHP version -- : 7.1

Hello,

When using Hikashop and selecting the countries dropdown, I see the country english name and the original name.

For example, Spain (España).

I want to show only the english name (without the original language translation). There's some way to hide the other part of the text?

Thanks in advance,

--
Víctor

Please Log in or Create an account to join the conversation.

More
9 years 2 weeks ago #278224 by Jerome
Hello,

That is handle directly by the HikaShop core (the field class) with the code
Code:
if($zone->zone_name_english != $zone->zone_name){ $title.=' ('.$zone->zone_name.')'; }
So if you want to remove the name of the country ; you'll have to edit an HikaShop core file (which is not recommended) or you can edit the countries to change their "zone_name" with the content of the "zone_name_english".

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: PeterChain

Please Log in or Create an account to join the conversation.

More
9 years 2 weeks ago #278413 by PeterChain
Ok, thanks for the fast answer.

--
Víctor

Please Log in or Create an account to join the conversation.

Time to create page: 0.211 seconds
Powered by Kunena Forum