Cust id variable

I have made a custom addon for cs-cart. Everything works fine except for when inserting the user id into a table. Does anyone know what PHP variable would the customer id would be for cs-cart? So i can insert the id into my table.

If you are asking for the customer id for the current logged in user then it’ll be {$auth.user_id}

[quote name=‘baballuci’]If you are asking for the customer id for the current logged in user then it’ll be {$auth.user_id}[/QUOTE]



actually baba… that’s the template var… not the php var… they are asking for the php variable



which should be something like $auth[‘user_id’]

$auth[‘user_id’] worked Thank you guys

I’m trying to do something on this order except I need to convert {$auth.user_id} or {$user_info.user_login} to a php variable so use inside {php} tags. I’ve tried until I’m blue in the face but can’t seem to get a grasp on this.



of course this doesn’t work.

{php}

$usrid = $auth.user_id



// I need to assign a unique path to a directory for each user.

$usrdir = /path/to/$usrid

{/php}



Any help would be greatly appreciated. Willing to hire 3rd party programmer if I could find one.



James