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

#   \[ASTUCE\] Champs "quantité" en trop dans le panier

##

- **[spameur](/forum/user/1195-spameur "View spameur's Profile")**
- [![spameur's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1195.gif)](/forum/user/1195-spameur "View spameur's Profile") Topic Author
- [ Offline](/forum/user/1195-spameur)

Less More

- Posts: 15
- Thank you received: 0
-
-
-

15 years 9 months ago -  15 years 9 months ago [\#8807](#8807) by [spameur](/forum/user/1195-spameur "View spameur's Profile")  *[\[ASTUCE\] Champs "quantité" en trop dans le panier](/forum/5-support-en-francais-french-support-/8807-astuce-champs-quantite-en-trop-dans-le-panier#8807 "Bonjour, Pour éviter l'affichage d'un champs parasite de quantités dans le panier, il faut désactiver ou supprimer la ligne 155 du fichier administrator/components/com&#95;hikashop/helpers/cart.php  /&#42;$html = ''.$html;&#42;/  Celui-ci est situé devant le bouton &quot;Terminer ma commande&quot;. Enjoy :cheer:")* was created by *[spameur](/forum/user/1195-spameur "View spameur's Profile")*

Bonjour,
Pour éviter l'affichage d'un champs parasite de quantités dans le panier, il faut désactiver ou supprimer la ligne 155 du fichier administrator/components/com_hikashop/helpers/cart.php

/*$html = '&lt;input id="hikashop_product_quantity_field_'.$i.'" type="text" value="'.JRequest::getInt('quantity',$min_quantity).'" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange(\'hikashop_product_quantity_field_'.$i.'\','.$max_quantity.','.$min_quantity.');" /&gt;'.$html;*/

Celui-ci est situé devant le bouton "Terminer ma commande".
Enjoy ![:cheer:](/media/kunena/emoticons/2.png ":cheer:")

Last edit: 15 years 9 months ago by [spameur](/forum/user/1195-spameur "View spameur's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODgwNy1hc3R1Y2UtY2hhbXBzLXF1YW50aXRlLWVuLXRyb3AtZGFucy1sZS1wYW5pZXI/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: 86593
- Thank you received: 14334
-
-

15 years 9 months ago [\#8809](#8809) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: \[ASTUCE\] champs "quantité" en trop dans le panier](/forum/5-support-en-francais-french-support-/8807-astuce-champs-quantite-en-trop-dans-le-panier#8809 "Bonjour, Pour éviter l'affichage d'un champs parasite de quantités dans le panier, il faut désactiver ou supprimer la ligne 155 du fichier administrator/components/com&#95;hikashop/helpers/cart.php  /&#42;$html = ''.$html;&#42;/  Celui-ci est situé devant le bouton &quot;Terminer ma commande&quot;. Enjoy :cheer:")*

Il faut aller dans le menu Affichage-&gt;Vues et éditer le fichier cart de la vue product et changer la ligne:
$this-&gt;params-&gt;set('show_quantity_field', -1);

en:
$this-&gt;params-&gt;set('show_quantity_field', 0);

Ce sera corriger avec la prochaine version.

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

- **[spameur](/forum/user/1195-spameur "View spameur's Profile")**
- [![spameur's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1195.gif)](/forum/user/1195-spameur "View spameur's Profile") Topic Author
- [ Offline](/forum/user/1195-spameur)

Less More

- Posts: 15
- Thank you received: 0
-
-
-

15 years 9 months ago [\#8844](#8844) by [spameur](/forum/user/1195-spameur "View spameur's Profile")  Replied by *[spameur](/forum/user/1195-spameur "View spameur's Profile")* on topic *[Re: \[ASTUCE\] champs "quantité" en trop dans le panier](/forum/5-support-en-francais-french-support-/8807-astuce-champs-quantite-en-trop-dans-le-panier#8844 "Bonjour, Pour éviter l'affichage d'un champs parasite de quantités dans le panier, il faut désactiver ou supprimer la ligne 155 du fichier administrator/components/com&#95;hikashop/helpers/cart.php  /&#42;$html = ''.$html;&#42;/  Celui-ci est situé devant le bouton &quot;Terminer ma commande&quot;. Enjoy :cheer:")*

Peux-tu préciser s'il faut réactiver la ligne 155 ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODgwNy1hc3R1Y2UtY2hhbXBzLXF1YW50aXRlLWVuLXRyb3AtZGFucy1sZS1wYW5pZXI/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: 86593
- Thank you received: 14334
-
-

15 years 9 months ago [\#8845](#8845) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: \[ASTUCE\] champs "quantité" en trop dans le panier](/forum/5-support-en-francais-french-support-/8807-astuce-champs-quantite-en-trop-dans-le-panier#8845 "Bonjour, Pour éviter l'affichage d'un champs parasite de quantités dans le panier, il faut désactiver ou supprimer la ligne 155 du fichier administrator/components/com&#95;hikashop/helpers/cart.php  /&#42;$html = ''.$html;&#42;/  Celui-ci est situé devant le bouton &quot;Terminer ma commande&quot;. Enjoy :cheer:")*

Oui. Elle sert à afficher le champ de quantité dans la page des produits.

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

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