[Skip to main content](#vessel-content)

#   utiliser une zone de pays pour enregistrement

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

2 years 2 months ago -  2 years 2 months ago [\#362751](#362751) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[utiliser une zone de pays pour enregistrement](/forum/5-support-en-francais-french-support-/908521-utiliser-une-zone-de-pays-pour-enregistrement#362751 "Bonjour  dans le formulaire d'enregistrement comment faire pour que le SELECT des pays soit pris dans une zone spécifique  j'ai cree une zone&#95;namekey = ship&#95;5000  je voudrais que le SELECT affiche uniquement cette zone (et donc uniquement les pays ayant deja été utilisés) j'ai un extra champ text pour autre pays si nécessaire  en attendant je fais  mais a chaque MAJ c'est a recommencer  merci")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

Bonjour

dans le formulaire d'enregistrement comment faire pour que le SELECT des pays soit pris dans une zone spécifique

j'ai cree une zone_namekey = ship_5000
Code:

INSERT IGNORE INTO &#96;fr_hikashop_zone_link&#96; SELECT 'ship_5000', &#96;address_country&#96; FROM &#96;fr_hikashop_address&#96; WHERE &#96;address_country&#96; IS NOT NULL GROUP BY &#96;address_country&#96;;

je voudrais que le SELECT affiche uniquement cette zone (et donc uniquement les pays ayant deja été utilisés)
*j'ai un extra champ text pour autre pays si nécessaire*

en attendant je fais Code:

UPDATE fr_hikashop_zone SET zone_published = 0 WHERE zone_type= 'country'; UPDATE fr_hikashop_zone a LEFT JOIN fr_hikashop_zone_link b ON a.zone_namekey = b.zone_child_namekey SET a.zone_published = 1 WHERE b.zone_child_namekey IS NOT NULL AND b.zone_parent_namekey LIKE 'ship_5000';

mais a chaque MAJ c'est a recommencer

merci

Last edit: 2 years 2 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA4NTIxLXV0aWxpc2VyLXVuZS16b25lLWRlLXBheXMtcG91ci1lbnJlZ2lzdHJlbWVudD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

2 years 2 months ago [\#362752](#362752) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[utiliser une zone de pays pour enregistrement](/forum/5-support-en-francais-french-support-/908521-utiliser-une-zone-de-pays-pour-enregistrement#362752 "Bonjour  dans le formulaire d'enregistrement comment faire pour que le SELECT des pays soit pris dans une zone spécifique  j'ai cree une zone&#95;namekey = ship&#95;5000  je voudrais que le SELECT affiche uniquement cette zone (et donc uniquement les pays ayant deja été utilisés) j'ai un extra champ text pour autre pays si nécessaire  en attendant je fais  mais a chaque MAJ c'est a recommencer  merci")*

Bonjour,

Vous pouvez changer le type du champ en "single dropdown" et ensuite vous pouvez utiliser l'onglet "MySQL query" pour fournir votre propre requête MySQL qui retournera la liste des valeurs à utiliser dans le dropdown.

The following user(s) said Thank You: [erickb](/forum/user/4069-erickb "View erickb's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA4NTIxLXV0aWxpc2VyLXVuZS16b25lLWRlLXBheXMtcG91ci1lbnJlZ2lzdHJlbWVudD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2697
- Thank you received: 74
-
-

2 years 2 months ago -  2 years 2 months ago [\#362769](#362769) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[utiliser une zone de pays pour enregistrement](/forum/5-support-en-francais-french-support-/908521-utiliser-une-zone-de-pays-pour-enregistrement#362769 "Bonjour  dans le formulaire d'enregistrement comment faire pour que le SELECT des pays soit pris dans une zone spécifique  j'ai cree une zone&#95;namekey = ship&#95;5000  je voudrais que le SELECT affiche uniquement cette zone (et donc uniquement les pays ayant deja été utilisés) j'ai un extra champ text pour autre pays si nécessaire  en attendant je fais  mais a chaque MAJ c'est a recommencer  merci")*

Code:

SELECT a.zone_namekey as value, a.zone_name as title FROM fr_hikashop_zone a INNER JOIN fr_hikashop_zone_link b ON a.zone_namekey = b.zone_child_namekey WHERE b.zone_parent_namekey LIKE 'ship_5000' ORDER BY a.zone_name ASC;

marche parfaitement
merci

*une nouvelle option avec possibilité de garder la zone (sans liste simple) en sélectionnant la zone voulue serait bienvenue*

- [ ![Capturedecran2024-08-20a09.15.44.png](/forum/attachment/59637) ](/forum/attachment/59637 "...0a09.15.44.png") [ ](/forum/attachment/59637?download=1 "...0a09.15.44.png")

Last edit: 2 years 2 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTA4NTIxLXV0aWxpc2VyLXVuZS16b25lLWRlLXBheXMtcG91ci1lbnJlZ2lzdHJlbWVudD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.124 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
