1 / 3
Dec 2007

Cart example:

Item1 quantity2

Item2 quantity2



I save to DB at the same time as generating the codes. In the above cart example, I'm seeing twice as many sql entries than I should (I'm seeing 8 instead of 4). I noticed too that the Thank You page is shown in duplicate and the codes for each is a different set.



So the question is:

"How many times is the code generator called in this example?"



What am I doing wrong here? I feel like there is some very useful info that I'm missing.

  • created

    Dec '07
  • last reply

    Dec '07
  • 2

    replies

  • 785

    views

  • 2

    users

Just solved this...



I added a switch based on the item_cart_position



Might be worth mentioning this idea in the documentation.



Long live E-Junkie!

If you have the same code gen for both the products then it will be called twice with the same data, except item_cart_position will tell you which product's data you should use.