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

#   quantité x 10

##

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

Less More

- Posts: 59
- Thank you received: 1
-
-

13 years 1 month ago [\#129406](#129406) by [patrickus](/forum/user/8007-patrickus "View patrickus's Profile")  *[quantité x 10](/forum/5-support-en-francais-french-support-/863093-quantite-x-10#129406 "Bonjour, Le site se destine à la vente en ligne d'impression de billets. Les articles ont été créés par lots de 100, c'est à dire en back-end qt 1 = 100 pièces qt 2 = 200 pièces etc... Sur la page produit, j'ai un select pour choisir la quantité, mais dans le panier, la valeur récupérée corespond à class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity;?&gt;&quot; de la vue checkout/cart.php Si je modifie la ligne en: class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity&#42;100;?&gt;&quot; l'affichage dans le panier est OK mais le bouton &quot;commander&quot; rafraichit la page et multiplie la quantité par 100 de nouveau . Je me plante ou ? merci beaucoup")* was created by *[patrickus](/forum/user/8007-patrickus "View patrickus's Profile")*

Bonjour,
Le site se destine à la vente en ligne d'impression de billets.
Les articles ont été créés par lots de 100, c'est à dire en back-end
qt 1 = 100 pièces
qt 2 = 200 pièces
etc...
Sur la page produit, j'ai un select pour choisir la quantité, mais dans le panier, la valeur récupérée corespond à
class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity;?&gt;" de la vue checkout/cart.php
Si je modifie la ligne en:
class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity*100;?&gt;"
l'affichage dans le panier est OK mais le bouton "commander" rafraichit la page et multiplie la quantité par 100 de nouveau .
Je me plante ou ?
merci beaucoup

- [ ![hfc0114f.png](/forum/attachment/13158) ](/forum/attachment/13158 "hfc0114f.png") [ ](/forum/attachment/13158?download=1 "hfc0114f.png")
- [ ![hd4ca87e.png](/forum/attachment/13159) ](/forum/attachment/13159 "hd4ca87e.png") [ ](/forum/attachment/13159?download=1 "hd4ca87e.png")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#129457](#129457) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[quantité x 10](/forum/5-support-en-francais-french-support-/863093-quantite-x-10#129457 "Bonjour, Le site se destine à la vente en ligne d'impression de billets. Les articles ont été créés par lots de 100, c'est à dire en back-end qt 1 = 100 pièces qt 2 = 200 pièces etc... Sur la page produit, j'ai un select pour choisir la quantité, mais dans le panier, la valeur récupérée corespond à class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity;?&gt;&quot; de la vue checkout/cart.php Si je modifie la ligne en: class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity&#42;100;?&gt;&quot; l'affichage dans le panier est OK mais le bouton &quot;commander&quot; rafraichit la page et multiplie la quantité par 100 de nouveau . Je me plante ou ? merci beaucoup")*

Bonjour,

Oui en effet si vous recalculez la quantité dans le champ "hikashop_product_quantity_field" cela va recalculer le prix.
Le plus simple est de bien spécifié que la quantité indiquée correspond à un lot, soit 100 billets.
Sinon, cela va entraîner bon nombre de modifications dans les vues, emails, etc.

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

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

Less More

- Posts: 59
- Thank you received: 1
-
-

13 years 1 month ago [\#129465](#129465) by [patrickus](/forum/user/8007-patrickus "View patrickus's Profile")  Replied by *[patrickus](/forum/user/8007-patrickus "View patrickus's Profile")* on topic *[quantité x 10](/forum/5-support-en-francais-french-support-/863093-quantite-x-10#129465 "Bonjour, Le site se destine à la vente en ligne d'impression de billets. Les articles ont été créés par lots de 100, c'est à dire en back-end qt 1 = 100 pièces qt 2 = 200 pièces etc... Sur la page produit, j'ai un select pour choisir la quantité, mais dans le panier, la valeur récupérée corespond à class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity;?&gt;&quot; de la vue checkout/cart.php Si je modifie la ligne en: class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity&#42;100;?&gt;&quot; l'affichage dans le panier est OK mais le bouton &quot;commander&quot; rafraichit la page et multiplie la quantité par 100 de nouveau . Je me plante ou ? merci beaucoup")*

Bonjour,
C'est effectivement ce que j'avais fait.
Les mails ont été modifiés et la page produit utilise un fichier hikashop_button.php pour avoir un select.
Mais le clent n'est pas satisfait par le fait que l'acheteur ne voit pas la qté réelle ...
Par contre, ce que je ne sais pas faire, aprés avoir parcouru le forum dans tous les sens, c'est comment récupérer ce select dans la page checkout/cart
Si vous pouviez me guider dans ce sens, ce serait sympa.
Merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODYzMDkzLXF1YW50aXRlLXgtMTA/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: 14326
-
-

13 years 1 month ago [\#129622](#129622) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[quantité x 10](/forum/5-support-en-francais-french-support-/863093-quantite-x-10#129622 "Bonjour, Le site se destine à la vente en ligne d'impression de billets. Les articles ont été créés par lots de 100, c'est à dire en back-end qt 1 = 100 pièces qt 2 = 200 pièces etc... Sur la page produit, j'ai un select pour choisir la quantité, mais dans le panier, la valeur récupérée corespond à class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity;?&gt;&quot; de la vue checkout/cart.php Si je modifie la ligne en: class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity&#42;100;?&gt;&quot; l'affichage dans le panier est OK mais le bouton &quot;commander&quot; rafraichit la page et multiplie la quantité par 100 de nouveau . Je me plante ou ? merci beaucoup")*

Il n'est pas possible de le récupérer.
Par contre, il est assez simple de le transformer en select.
Editez le fichier "cart" de la vue "checkout" via Display-&gt;Views et changez la ligne: Code:

&lt;input id="hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onchange="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt;}; return true;" /&gt;

pour un select avec les valeurs souhaitée en prennant bien soin de garder le même name et le même id et cela devrait fonction.

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

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

Less More

- Posts: 59
- Thank you received: 1
-
-

13 years 1 month ago [\#129626](#129626) by [patrickus](/forum/user/8007-patrickus "View patrickus's Profile")  Replied by *[patrickus](/forum/user/8007-patrickus "View patrickus's Profile")* on topic *[quantité x 10](/forum/5-support-en-francais-french-support-/863093-quantite-x-10#129626 "Bonjour, Le site se destine à la vente en ligne d'impression de billets. Les articles ont été créés par lots de 100, c'est à dire en back-end qt 1 = 100 pièces qt 2 = 200 pièces etc... Sur la page produit, j'ai un select pour choisir la quantité, mais dans le panier, la valeur récupérée corespond à class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity;?&gt;&quot; de la vue checkout/cart.php Si je modifie la ligne en: class=&quot;hikashop&#95;product&#95;quantity&#95;field&quot; value=&quot;cart&#95;product&#95;quantity&#42;100;?&gt;&quot; l'affichage dans le panier est OK mais le bouton &quot;commander&quot; rafraichit la page et multiplie la quantité par 100 de nouveau . Je me plante ou ? merci beaucoup")*

Bonjour,
Merci Nicolas
C'est ce que j'ai fait et tout est OK.
Le client a l'affichage qu'il voulait.

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