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

#   Limite champs personnalisé

##

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

Less More

- Posts: 11
- Thank you received: 1
-
-

6 years 4 months ago -  6 years 4 months ago [\#320555](#320555) by [durtom](/forum/user/59596-durtom "View durtom's Profile")  *[Limite champs personnalisé](/forum/5-support-en-francais-french-support-/900132-limite-champs-personnalise#320555 "-- url of the page with the problem -- :   www.printlor.fr/decoration/tableau/produ.../category&#95;pathway-43  Bonjour,  J'utilise le plugin &quot;Shop Custom Width Length plugin&quot;. Je voudrais pouvoir incorporer des limites dans les champs personnalisés, où les clients ne peuvent pas y mettre n'importe quelle valeur, comme sur la capture d'écran ci-dessus ( avec un message d'erreur de type ( ⚠️ Longueur maximum : 20 m. )  Je voudrais mettre 2,7 m MAX de laize. Ainsi que 20 m MAX de longueur.  Est-ce possible, et comment faire? Voici le lien :   www.printlor.fr/decoration/tableau/produ.../category&#95;pathway-43  Cordialement,  Thomas.")* was created by *[durtom](/forum/user/59596-durtom "View durtom's Profile")*

-- url of the page with the problem -- : [ www.printlor.fr/decoration/tableau/produ.../category\_pathway-43](https://www.printlor.fr/decoration/tableau/produit/toile-tendu-test/category_pathway-43)

Bonjour,

[ ![pluginhikashop.jpg](/forum/attachment/49675) ](/forum/attachment/49675 "...inhikashop.jpg")

J'utilise le plugin "Shop Custom Width Length plugin".
Je voudrais pouvoir incorporer des limites dans les champs personnalisés, où les clients ne peuvent pas y mettre n'importe quelle valeur, comme sur la capture d'écran ci-dessus ( avec un message d'erreur de type ( ⚠️ Longueur maximum : 20 m. )

Je voudrais mettre 2,7 m MAX de laize.
Ainsi que 20 m MAX de longueur.

Est-ce possible, et comment faire?
Voici le lien : [ www.printlor.fr/decoration/tableau/produ.../category\_pathway-43](https://www.printlor.fr/decoration/tableau/produit/toile-tendu-test/category_pathway-43)

[ ![laizehikashop.jpg](/forum/attachment/49676) ](/forum/attachment/49676 "laizehikashop.jpg")

Cordialement,

Thomas.

- [ ![pluginhikashop.jpg](/forum/attachment/49675) ](/forum/attachment/49675 "...inhikashop.jpg") [ ](/forum/attachment/49675?download=1 "...inhikashop.jpg")
- [ ![laizehikashop.jpg](/forum/attachment/49676) ](/forum/attachment/49676 "laizehikashop.jpg") [ ](/forum/attachment/49676?download=1 "laizehikashop.jpg")

Last edit: 6 years 4 months ago by [durtom](/forum/user/59596-durtom "View durtom's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTAwMTMyLWxpbWl0ZS1jaGFtcHMtcGVyc29ubmFsaXNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

6 years 4 months ago [\#320562](#320562) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Limite champs personnalisé](/forum/5-support-en-francais-french-support-/900132-limite-champs-personnalise#320562 "-- url of the page with the problem -- :   www.printlor.fr/decoration/tableau/produ.../category&#95;pathway-43  Bonjour,  J'utilise le plugin &quot;Shop Custom Width Length plugin&quot;. Je voudrais pouvoir incorporer des limites dans les champs personnalisés, où les clients ne peuvent pas y mettre n'importe quelle valeur, comme sur la capture d'écran ci-dessus ( avec un message d'erreur de type ( ⚠️ Longueur maximum : 20 m. )  Je voudrais mettre 2,7 m MAX de laize. Ainsi que 20 m MAX de longueur.  Est-ce possible, et comment faire? Voici le lien :   www.printlor.fr/decoration/tableau/produ.../category&#95;pathway-43  Cordialement,  Thomas.")*

Bonjour,

C'est possible.
Pour cela, vous voulez utiliser l'option "vérification avec expression régulière" de vos champs personnalisés.
Dans le premier, vous voudrez entrer Code:

[1-2](,[0-7])?

Et dans le second: Code:

([0-9]&#124;1[0-9]&#124;20)

Après, c'est à adapter en fonction de ce que vous voulez vraiment... nombre de décimales, etc
[ www.regular-expressions.info/tutorial.html](https://www.regular-expressions.info/tutorial.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTAwMTMyLWxpbWl0ZS1jaGFtcHMtcGVyc29ubmFsaXNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 11
- Thank you received: 1
-
-

6 years 4 months ago -  6 years 4 months ago [\#320613](#320613) by [durtom](/forum/user/59596-durtom "View durtom's Profile")  Replied by *[durtom](/forum/user/59596-durtom "View durtom's Profile")* on topic *[Limite champs personnalisé](/forum/5-support-en-francais-french-support-/900132-limite-champs-personnalise#320613 "-- url of the page with the problem -- :   www.printlor.fr/decoration/tableau/produ.../category&#95;pathway-43  Bonjour,  J'utilise le plugin &quot;Shop Custom Width Length plugin&quot;. Je voudrais pouvoir incorporer des limites dans les champs personnalisés, où les clients ne peuvent pas y mettre n'importe quelle valeur, comme sur la capture d'écran ci-dessus ( avec un message d'erreur de type ( ⚠️ Longueur maximum : 20 m. )  Je voudrais mettre 2,7 m MAX de laize. Ainsi que 20 m MAX de longueur.  Est-ce possible, et comment faire? Voici le lien :   www.printlor.fr/decoration/tableau/produ.../category&#95;pathway-43  Cordialement,  Thomas.")*

Merci Nicolas ça marche niquel.

Juste une petite précision j'ai trouvé la formule suivante pour la longueur de 1 à 20 :
Code:

^[1-9]$&#124;^[1][0-9]$&#124;^20$

Last edit: 6 years 4 months ago by [durtom](/forum/user/59596-durtom "View durtom's Profile").

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTAwMTMyLWxpbWl0ZS1jaGFtcHMtcGVyc29ubmFsaXNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.062 seconds

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