variable paramètre $i

  • Posts: 263
  • Thank you received: 11
10 years 10 months ago #168565

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

$i =$this->params->get('i');

Du fichier :
show_quantity.php

???

Merci

Please Log in or Create an account to join the conversation.

  • Posts: 26255
  • Thank you received: 4041
  • MODERATOR
10 years 10 months ago #168566

Bonjour,

$i est un compteur.

Cordialement,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Flooder

Please Log in or Create an account to join the conversation.

  • Posts: 263
  • Thank you received: 11
10 years 10 months ago #168609

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: 10 years 10 months ago by Flooder.

Please Log in or Create an account to join the conversation.

  • Posts: 26255
  • Thank you received: 4041
  • MODERATOR
10 years 10 months ago #168613

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: Flooder

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds
Powered by Kunena Forum