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

#   empecher selection produits sur commande dans panier

##

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

Less More

- Posts: 177
- Thank you received: 8
-
-

5 years 9 months ago [\#329696](#329696) by [UserB](/forum/user/41252-userb "View UserB's Profile")  *[empecher selection produits sur commande dans panier](/forum/5-support-en-francais-french-support-/901950-empecher-selection-produits-sur-commande-dans-panier#329696 "-- HikaShop version -- : 4.4 -- Joomla version -- : 3.9.23 -- PHP version -- : 7  Bonjour, question parametrage : Comment puis-je empecher les produits &quot;sur commande&quot; d'etre mis dans le panier ? Merci.")* was created by *[UserB](/forum/user/41252-userb "View UserB's Profile")*

-- HikaShop version -- : 4.4
-- Joomla version -- : 3.9.23
-- PHP version -- : 7

Bonjour, question parametrage : Comment puis-je empecher les produits "sur commande" d'etre mis dans le panier ?
Merci.

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 9 months ago -  5 years 9 months ago [\#329704](#329704) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[empecher selection produits sur commande dans panier](/forum/5-support-en-francais-french-support-/901950-empecher-selection-produits-sur-commande-dans-panier#329704 "-- HikaShop version -- : 4.4 -- Joomla version -- : 3.9.23 -- PHP version -- : 7  Bonjour, question parametrage : Comment puis-je empecher les produits &quot;sur commande&quot; d'etre mis dans le panier ? Merci.")*

Bonjour,

Je vois 2 solutions pour obtenir cela :
**1.** En mettant les quantité de votre produit à 0, et modifier la traduction pour mettre "la notice" à votre client.
**2.** Ou bien, si vous avez besoin de conserver la gestion des stock, utilisez une **comande Css** pour cacher le bouton "**Add to Cart**", et même potentiellement ajouter le texte notice.
**=&gt;** Voici l'idée avec ce pseudo code :
**.product\_page\_class .product\_id .add\_to cart\_class {
display: none;
}**
**=&gt;** Pour ajouter du text :
**.product\_page\_class .product\_id .html\_description\_class::after {
content: "Your text and indications etc etc"
}**

**Note :** Regardez **[ cette documentation](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom)** pour voir comment ajouter des command Css.
En espérant que cela vous aidera à progresser sur votre "custom".

Cordialement

Last edit: 5 years 9 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 177
- Thank you received: 8
-
-

5 years 9 months ago [\#329740](#329740) by [UserB](/forum/user/41252-userb "View UserB's Profile")  Replied by *[UserB](/forum/user/41252-userb "View UserB's Profile")* on topic *[empecher selection produits sur commande dans panier](/forum/5-support-en-francais-french-support-/901950-empecher-selection-produits-sur-commande-dans-panier#329740 "-- HikaShop version -- : 4.4 -- Joomla version -- : 3.9.23 -- PHP version -- : 7  Bonjour, question parametrage : Comment puis-je empecher les produits &quot;sur commande&quot; d'etre mis dans le panier ? Merci.")*

Bonjour, en fait, il faut qu'a partir du moment ou le produit n'a pas de tarif, il n'est pas plaçable dans le panier. J'ai fini par surcharger le com_hikashop/product/add_to_cart_ajax.php line 138 avec un
if(!empty($this-&gt;row-&gt;prices)) {
...
}
Je l'ai aussi ajouté à com_hikashop/product/add_to_cart_ajax.php pour faire la meme chose sur la page produit individuelle ; le lien de mise ne panier ne se montre plus.
Seule bémol est que si mon produit a des options, cela fausse le calculateur qui du coup ne fonctionne pas, normal. une solution simple par rapport au calculateur ?
Merci Philippe.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vOTAxOTUwLWVtcGVjaGVyLXNlbGVjdGlvbi1wcm9kdWl0cy1zdXItY29tbWFuZGUtZGFucy1wYW5pZXI/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 9 months ago [\#329742](#329742) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[empecher selection produits sur commande dans panier](/forum/5-support-en-francais-french-support-/901950-empecher-selection-produits-sur-commande-dans-panier#329742 "-- HikaShop version -- : 4.4 -- Joomla version -- : 3.9.23 -- PHP version -- : 7  Bonjour, question parametrage : Comment puis-je empecher les produits &quot;sur commande&quot; d'etre mis dans le panier ? Merci.")*

Bonjour,

Pour empêcher l'ajout au panier de produits sans prix, il suffit de désactiver l'option "Display add to cart button for free products" dans la configuration HikaShop.
Ensuite, si vous voulez quand même afficher le bouton pour certains produits sans prix car les options du produit ont le prix, alors vous pouvez mettre un prix de 0.00001 à votre produit. Cela sera arrondi à 0.00 et le système considèrera que le produit a un prix.

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

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

Less More

- Posts: 177
- Thank you received: 8
-
-

5 years 9 months ago [\#329757](#329757) by [UserB](/forum/user/41252-userb "View UserB's Profile")  Replied by *[UserB](/forum/user/41252-userb "View UserB's Profile")* on topic *[empecher selection produits sur commande dans panier](/forum/5-support-en-francais-french-support-/901950-empecher-selection-produits-sur-commande-dans-panier#329757 "-- HikaShop version -- : 4.4 -- Joomla version -- : 3.9.23 -- PHP version -- : 7  Bonjour, question parametrage : Comment puis-je empecher les produits &quot;sur commande&quot; d'etre mis dans le panier ? Merci.")*

Hey beh voila, je savais bien qu'il y avait une option comme ça dans Hikashop, je ne l'avais pas retrouvé. Merci Nicolas, j'ai désactivé ma surcharge de code, meme résultat pour le moment mais au moins, on est sur le systeme de base.

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

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