Forums / General Questions / use session variables on product page?

use session variables on product page?

Locked

Views: 659

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Nov 2009, 5:02 AM
#1
zvenson avatar

zvenson

New Zenner

Join Date:
May 2009
Posts:
61
Plugin Contributions:
0

use session variables on product page?

Hi!
Would be sooo great if anyone could help me on this:

I want to check the country where a user which is from while logged in on the tpl_products_info.php page. Therefore i thought about using session variables but unfortunaltely i don't know which session variables are accessible or how they can be made accesible on this page.

I want to do something like:
"if user is from denmark then do this and that...."

I would love it if someone could point me in a direction!

sven

www.acousticsdb.com - soundproofing and room acoustics matters | webdesign hamburg

18 Nov 2009, 5:15 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: use session variables on product page?

The variable to use is: ```
$_SESSION['customer_country_id']

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Nov 2009, 1:27 PM
#3
zvenson avatar

zvenson

New Zenner

Join Date:
May 2009
Posts:
61
Plugin Contributions:
0

Re: use session variables on product page?

Thank you drByte! Great! You helped me a lot!
Thumbs up!

www.acousticsdb.com - soundproofing and room acoustics matters | webdesign hamburg