List of countries / Order drop-down list

  • Posts: 18
  • Thank you received: 2
  • Hikashop Essential
4 years 2 months ago #323940

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.4.9

Hello,
Sorry for my English ;-)
I want to change the order of countries in the drop-down list.
Example: Display "Metropolitan France" first. Or apply changes?
Thank you
cordially
Vincent

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 months ago #323942

Hi,

The order is alphabetic.
So you could cheat by changing the name of the zone in the menu System>Zones.
If you want to sort differently, then you would have to change the code:

$query .= ' WHERE '.implode(' AND ',$filters).' ORDER BY a.zone_name_english ASC';
in the file administrator/components/com_hikashop/types/country.php but I don't recommend doing that as you'll loose your changes when you update HikaShop and you'll have to reapply them each time.

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

  • Posts: 18
  • Thank you received: 2
  • Hikashop Essential
4 years 2 months ago #323955

Thanks Nicolas

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

Time to create page: 0.162 seconds
Powered by Kunena Forum