Zen Cart Logo
Forums / General Questions / Adding customer ID to Defined pages

Adding customer ID to Defined pages

Locked

Views: 693

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Dec 2008, 5:47 AM
#1
kbrand avatar

kbrand

New Zenner

Join Date:
Nov 2005
Posts:
14
Plugin Contributions:
0

Adding customer ID to Defined pages

Help me out please. I'm trying to create a defined page that can be edited using the defined pages editor (currently define_page_2.php).
I'm trying to add the currently logged on customers customer ID to this page. Can any one tell me how this would be done? Any sample code would be helpful.

Thanks!

-Ken

21 Dec 2008, 6:18 AM
#2
kbrand avatar

kbrand

New Zenner

Join Date:
Nov 2005
Posts:
14
Plugin Contributions:
0

Re: Adding customer ID to Defined pages

Hmm I posted to quickly I think. Here's what I came up with after about 15 min of perusing the Wiki and the Developer API

<?php echo $_SESSION['customer_id'] ?>

-Ken