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

#   Panier Minimum

##

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

Less More

- Posts: 15
- Thank you received: 1
-
-

14 years 3 months ago [\#58292](#58292) by [enzo24](/forum/user/8014-enzo24 "View enzo24's Profile")  *[Panier Minimum](/forum/5-support-en-francais-french-support-/58292-panier-minimum#58292 "Est-il possible d'obliger un client de commander une quantité minimum dans le panier (pas forcément du meme produit).  Je m'explique :  Je vends des produits en carton. Pour des raisons de transport (que nous faison gratuitement sur France Métropole), il faut commander au moins 2 cartons dans le panier : par exemple 1 carton de produit A et 1 carton de produit B.  Il ne s'agit pas d'obliger une quantité minimum d'un produit mais que le total de la Quantité DANS LE PANIER est = ou &gt; 2, sinon le client à un message &quot;Quantité minimum pour une commande = 2&quot; (par exemple...)  Comment m'y prendre ?  Merci")* was created by *[enzo24](/forum/user/8014-enzo24 "View enzo24's Profile")*

Est-il possible d'obliger un client de commander une quantité minimum dans le panier (pas forcément du meme produit).

Je m'explique :

Je vends des produits en carton. Pour des raisons de transport (que nous faison gratuitement sur France Métropole), il faut commander au moins 2 cartons dans le panier :
par exemple 1 carton de produit A et 1 carton de produit B.

Il ne s'agit pas d'obliger une quantité minimum d'un produit mais que le total de la Quantité DANS LE PANIER est = ou &gt; 2, sinon le client à un message "Quantité minimum pour une commande = 2" (par exemple...)

Comment m'y prendre ?

Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNTgyOTItcGFuaWVyLW1pbmltdW0/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/4069-erickb)

Less More

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

14 years 3 months ago [\#58298](#58298) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: Panier Minimum](/forum/5-support-en-francais-french-support-/58292-panier-minimum#58298 "Est-il possible d'obliger un client de commander une quantité minimum dans le panier (pas forcément du meme produit).  Je m'explique :  Je vends des produits en carton. Pour des raisons de transport (que nous faison gratuitement sur France Métropole), il faut commander au moins 2 cartons dans le panier : par exemple 1 carton de produit A et 1 carton de produit B.  Il ne s'agit pas d'obliger une quantité minimum d'un produit mais que le total de la Quantité DANS LE PANIER est = ou &gt; 2, sinon le client à un message &quot;Quantité minimum pour une commande = 2&quot; (par exemple...)  Comment m'y prendre ?  Merci")*

dans la view ./templates/TPL/html/com_hikashop/checkout/cart.php il faut compter le $row-&gt;cart_product_quantity;

if ($row-&gt;cart_product_quantity &lt; 1){
echo 'LE MESSAGE';
}
else{
.. on continue
}

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

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

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

[](#top)
