Zen Cart Logo
Forums / All Other Contributions/Addons / Add a new session variable and save to order?

Add a new session variable and save to order?

Views: 1,159

Results 1 to 4 of 4
19 Jan 2011, 1:05 AM
#1
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Add a new session variable and save to order?

I did some search but was unable to find the answer:

I want to add a session variable, and save it to the order. What should be the best way to do that? (assume I can add a new column to the order table for it)

For example, I may use this session variable to save the referral URL to my page.

How do I add a session variable? What are the files I should change? And which file is responsible for saving an order.

Thanks a lot.

19 Jan 2011, 2:56 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Add a new session variable and save to order?

For example, I may use this session variable to save the referral URL to my page.
Don't mess with sessions
There are a couple of affiliate 3rd party modules in the free software addons, link above left, that can bu used

19 Jan 2011, 5:16 AM
#3
cindy2010 avatar

cindy2010

Zen Follower

Join Date:
Apr 2010
Posts:
100
Plugin Contributions:
0

Re: Add a new session variable and save to order?

kobra:

Don't mess with sessions
There are a couple of affiliate 3rd party modules in the free software addons, link above left, that can bu used

Well, it doen't mean I can't try to learn how to make a better one. :-)

19 Jan 2011, 8:54 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Add a new session variable and save to order?

Well, it doen't mean I can't try to learn how to make a better one.
The existing ones would be a good place to begin