Zen Cart Logo
Forums / Contribution-Writing Guidelines / Why does GiftCard stores amount in session?

Why does GiftCard stores amount in session?

Locked

Views: 2,034

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
21 Jan 2008, 3:47 AM
#1
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Why does GiftCard stores amount in session?

In $_SESSION['cot_gv'] to be exact, I just wonder if this will need to be used later or something, since Im writing a module that is similar to GiftCard.

If not, I would rather store it in class param and retrieve it from DB every time, since things can get nasty if the amount in SESSION is different from the amount in DB

Regards.