Share via E-Mail
Share on Google Buzz
Share on Twitter
Share on Facebook
E-junkie Blog
E-junkie FaceBook Page
E-junkie @ Twitter

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

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



ByDesignGames
member
Posts: 35


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.


#
POSTED ON: December 16, 2007 @ 19:11 GMT -7




ByDesignGames
member
Posts: 35


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!


#
POSTED ON: December 16, 2007 @ 19:25 GMT -7




E-junkieChef
E-Junkie Crew
Posts: 936


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.


#
POSTED ON: December 19, 2007 @ 18:43 GMT -7


You must be logged in to make a post. Please click here to login.

30 Day Money Back Guarantee
PayPal Certified Integration
Google Checkout Certified Integration
Slam the Online Scam