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

#   variable paramètre $i

##

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 3 months ago [\#168565](#168565) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  *[variable paramètre $i](/forum/25-install-update/870551-variable-parametre-i#168565 "Bonjour à vous, Que représente donc le $i dans :  Du fichier : show&#95;quantity.php  ???  Merci")* was created by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")*

Bonjour à vous,
Que représente donc le $i dans : Code:

$i =$this-&gt;params-&gt;get('i');

Du fichier :
show_quantity.php

???

Merci

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#168566](#168566) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[variable paramètre $i](/forum/25-install-update/870551-variable-parametre-i#168566 "Bonjour à vous, Que représente donc le $i dans :  Du fichier : show&#95;quantity.php  ???  Merci")*

Bonjour,

$i est un compteur.

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Flooder](/forum/user/23280-flooder "View Flooder's Profile")

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

- **[Flooder](/forum/user/23280-flooder "View Flooder's Profile")**
- [![Flooder's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23280.png)](/forum/user/23280-flooder "View Flooder's Profile") Topic Author
- [ Offline](/forum/user/23280-flooder)

Less More

- Posts: 263
- Thank you received: 11
-
-

12 years 3 months ago -  12 years 3 months ago [\#168609](#168609) by [Flooder](/forum/user/23280-flooder "View Flooder's Profile")  Replied by *[Flooder](/forum/user/23280-flooder "View Flooder's Profile")* on topic *[variable paramètre $i](/forum/25-install-update/870551-variable-parametre-i#168609 "Bonjour à vous, Que représente donc le $i dans :  Du fichier : show&#95;quantity.php  ???  Merci")*

depuis des mois, j'utilisais ce $i .

Soudainement, pour un certain produit, il ne vaut plus 1 mais 2.....

Alors je me demande quelle est la source réelle de ce $i...

Merci

Last edit: 12 years 3 months ago by [Flooder](/forum/user/23280-flooder "View Flooder's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#168613](#168613) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[variable paramètre $i](/forum/25-install-update/870551-variable-parametre-i#168613 "Bonjour à vous, Que représente donc le $i dans :  Du fichier : show&#95;quantity.php  ???  Merci")*

Bonjour,

A chaque fois que "displayButton" est appelé, le compteur "$i" est incrémenté.
Cela permet d'avoir un identifiant unique pour tous les boutons (de type "add to cart").

Cordialement,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Flooder](/forum/user/23280-flooder "View Flooder's Profile")

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