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

#   champs personnalisé option article toujours affiché

##

- **[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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 11 months ago [\#356510](#356510) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#356510 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

Bonjour,

Pourriez-vous fournir l'URL d'un produit avec le souci et une capture d'écran des options du champ personnalisé ainsi que la formule qu'une capture des options de votre plugin price calculations ?

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

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

Less More

- Posts: 70
- Thank you received: 8
-
- [](https://www.perledo03.com)
-

2 years 10 months ago [\#357307](#357307) by [NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")  Replied by *[NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#357307 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

Bonjour Nicolas, désolé je n'étais plus abonné au poste je ne sais pas pourquoi.

Alors voici un exemple (je vous avais donné un accès en MP)

Ce que j'ai remarqué :

J'ai 2 champs personnalisés : flocage 1.6667€ HT et option_broderie_logo 2.5€ HT

Si je ne mets pas de restrictions de catégories tout fonctionne

Si je mets Centre Allier Foot en restriction de catégories option_broderie_logo , il ne devrait avoir que la boutique Centre Allier Foot qui voit l'option... c'est bien le cas, ça fonctionne.... sauf que sur la boutique UST HURIEL , l'option flocage n'additionne plus le tarif.

Idem, si je restreint l'option flocage à UST HURIEL... l'option broderie n'additionne plus le tarif sur Centre Allier Foot

les boutiques clubs (UST HURIEL et Centre Allier Foot uniquement pour le moment)

[ www.espritclub.net/mon-club.html](https://www.espritclub.net/mon-club.html)

Le but
UST HURIEL : que flocage
Centre Allier Foot : que broderie
d'autre clubs : les deux

La formule Hikashop - Price Calculations
{cart_product_quantity}*({price}+{flocage}+{option_broderie_logo})

Je vous joins les captures

Merci par avance

attachment=58368]Capture_flocage.PNG[/attachment]
[ ![Capture&#95;broderie2.PNG](/forum/attachment/58370) ](/forum/attachment/58370 "...&#95;broderie2.PNG")

[ ![Capture&#95;broderie.PNG](/forum/attachment/58369) ](/forum/attachment/58369 "...e&#95;broderie.PNG")

- [ ![Capture&#95;flocage.PNG](/forum/attachment/58368) ](/forum/attachment/58368 "...re&#95;flocage.PNG") [ ](/forum/attachment/58368?download=1 "...re&#95;flocage.PNG")
- [ ![Capture&#95;broderie.PNG](/forum/attachment/58369) ](/forum/attachment/58369 "...e&#95;broderie.PNG") [ ](/forum/attachment/58369?download=1 "...e&#95;broderie.PNG")
- [ ![Capture&#95;broderie2.PNG](/forum/attachment/58370) ](/forum/attachment/58370 "...&#95;broderie2.PNG") [ ](/forum/attachment/58370?download=1 "...&#95;broderie2.PNG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5OTQtY2hhbXBzLXBlcnNvbm5hbGlzZS1vcHRpb24tYXJ0aWNsZS10b3Vqb3Vycy1hZmZpY2hlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 10 months ago [\#357327](#357327) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#357327 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

Bonjour,

Pour qu'une formule soit utilisée par le plugin, il faut que tous les tags soient fournis par HikaShop.
Donc si dans la formule vous avez un tag pour un champ qui n'est disponible que dans certains produits, alors pour tous les autres produits, cette formule sera ignorée.
Ce qu'il faut faire, c'est configurer plusieurs formules pour couvrir tous les cas.

The following user(s) said Thank You: [NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")

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

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

Less More

- Posts: 70
- Thank you received: 8
-
- [](https://www.perledo03.com)
-

2 years 10 months ago -  2 years 10 months ago [\#357328](#357328) by [NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")  Replied by *[NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#357328 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

OK,

du genre

{cart_product_quantity}*({price}+{flocage})
{cart_product_quantity}*({price}+{option_broderie_logo})

Ça fonctionne mais par contre qu'elle formule faut il pour avoir les deux options en même temps ?

le but
equipe 1 : uniquement flocage possible
equipe 1 : uniquement broderie possible
equipe 3 : les deux options possibles

Last edit: 2 years 10 months ago by [NJWEB](/forum/user/36984-njweb "View NJWEB's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5OTQtY2hhbXBzLXBlcnNvbm5hbGlzZS1vcHRpb24tYXJ0aWNsZS10b3Vqb3Vycy1hZmZpY2hlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 10 months ago [\#357334](#357334) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#357334 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

Bonjour,

Pour les deux options, vous pouvez rajouter une troisième formule comme celle que vous aviez au début: Code:

{cart_product_quantity}*({price}+{flocage}+{option_broderie_logo})

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

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

Less More

- Posts: 70
- Thank you received: 8
-
- [](https://www.perledo03.com)
-

2 years 10 months ago [\#357587](#357587) by [NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")  Replied by *[NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#357587 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

Merci Nicolas, c'est ce que je me suis dit... mais le problème est le même l'option flocage n'incrémente pas le prix ![:-(](/media/kunena/emoticons/4.png ":-(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5OTQtY2hhbXBzLXBlcnNvbm5hbGlzZS1vcHRpb24tYXJ0aWNsZS10b3Vqb3Vycy1hZmZpY2hlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14272
-
-

2 years 10 months ago [\#357592](#357592) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#357592 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

Bonjour,

Faites attention à l'ordre de vos formules.
Si vous avez par exemple ces formules dans cet ordre: Code:

{cart_product_quantity}*({price}+{flocage}) {cart_product_quantity}*({price}+{option_broderie_logo}) {cart_product_quantity}*({price}+{flocage}+{option_broderie_logo})

Alors la dernière formule ne sera jamais prise en compte vu que le plugin utilisera la première formule qui convient à la situation.
Il faudra en fait fournir les formules dans cet ordre pour que cela fonctionne: Code:

{cart_product_quantity}*({price}+{flocage}+{option_broderie_logo}) {cart_product_quantity}*({price}+{flocage}) {cart_product_quantity}*({price}+{option_broderie_logo})

The following user(s) said Thank You: [NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")

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

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

Less More

- Posts: 70
- Thank you received: 8
-
- [](https://www.perledo03.com)
-

2 years 10 months ago [\#357599](#357599) by [NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")  Replied by *[NJWEB](/forum/user/36984-njweb "View NJWEB's Profile")* on topic *[champs personnalisé option article toujours affiché](/forum/26-product-category-display/906994-champs-personnalise-option-article-toujours-affiche?start=20#357599 "-- HikaShop version -- : 4.7.5 -- Joomla version -- : ‎4.3.4 -- PHP version -- : 8.2.8  Bonjour,  J'ai crée une option produit flocage avec un champs de texte associé.  J'ai suivi le tuto pour les options, cela fonctionne (exemple +10€ pour le flocage)  Par contre j'ai crée un champs personnalisés pour que le client puisse mettre son nom, le champs apparaît... mais je souhaiterais qu'il n'apparaisse que si l'option flocage est sur OUI.  Ceci est il possible ?  Merci par avance")*

Super c'était donc cela merci !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDY5OTQtY2hhbXBzLXBlcnNvbm5hbGlzZS1vcHRpb24tYXJ0aWNsZS10b3Vqb3Vycy1hZmZpY2hlP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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.173 seconds

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

[](#top)
