How to hide the translations on the countries dropdown

  • Posts: 634
  • Thank you received: 16
6 years 7 months ago #278220

-- 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

Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 7 months ago #278224

Hello,

That is handle directly by the HikaShop core (the field class) with the 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.

  • Posts: 634
  • Thank you received: 16
6 years 7 months ago #278413

Ok, thanks for the fast answer.

--
Víctor

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

Time to create page: 0.070 seconds
Powered by Kunena Forum