Zen Cart Logo
Forums / Managing Customers and Orders / Need to call Customer ID

Need to call Customer ID

Locked

Views: 2,310

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
25 Mar 2007, 6:20 PM
#1
stampsville avatar

stampsville

Zen Follower

Join Date:
Jul 2004
Posts:
123
Plugin Contributions:
0

Need to call Customer ID

Hi all,

I'm working on the "auction mod" and need to call the customer id from the database in order to display their id. What I need:

(Not even romotely familier with the codes to do this)

1 If possible, call the user forum id to the auction page and the account page for identification. I currently have the customer id # on the auctions.

OR

  1. I need to call the customer id number for the account page.

I have sorted out alot of the layout bugs and such (I think).

Anyone interested in helping to finish this PM me.

GJW

http://stampcommune.com/store/

25 Mar 2007, 7:24 PM
#2
stampsville avatar

stampsville

Zen Follower

Join Date:
Jul 2004
Posts:
123
Plugin Contributions:
0

Re: Need to call Customer ID

Cancel that I got it to show customer ID # in My Account.

GJW

StampCommune.com

31 Mar 2007, 2:44 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need to call Customer ID

What was the solution that worked for you? :smile:

31 Mar 2007, 4:18 PM
#4
stampsville avatar

stampsville

Zen Follower

Join Date:
Jul 2004
Posts:
123
Plugin Contributions:
0

Re: Need to call Customer ID

Hi Ajeh,

This worked, <?php echo $_SESSION['customer_id']; ?> .

This gives the customer # in "my account" of a user, in which is their auction user ID.

GJW

http://stampcommune.com/store/

12 Jan 2009, 2:25 PM
#5
remoteone avatar

remoteone

Zen Follower

Join Date:
Jan 2009
Location:
Macclesfield, South Australia
Posts:
104
Plugin Contributions:
0

Re: Need to call Customer ID

A little help please. excuse my lack of skills.
I'm trying to get the Sidebox Shopping Cart Sidebox to identify the customer .

How would I script this so that the Sidebox Shopping Cart shows the Customers " 'firstname' Cart " instead of "Shopping Cart"

using

<?php echo $_SESSION['customer_id']; ?> to extract the info from DB

into the line:
define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart');

in the \includes\languages\cherry_zen\english.php
cheers.

12 Jan 2009, 2:49 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need to call Customer ID

When a customer is logged in, there is also:
$_SESSION['customer_first_name']

13 Jan 2009, 12:49 AM
#7
remoteone avatar

remoteone

Zen Follower

Join Date:
Jan 2009
Location:
Macclesfield, South Australia
Posts:
104
Plugin Contributions:
0

Re: Need to call Customer ID

Thanks very much

I used (for example)
define('HEADING_TITLE', ''.$_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name'].' is logged on.');

13 Jan 2009, 12:56 AM
#8
remoteone avatar

remoteone

Zen Follower

Join Date:
Jan 2009
Location:
Macclesfield, South Australia
Posts:
104
Plugin Contributions:
0

Re: Need to call Customer ID

Thanks very much...great!

I used (for example)
define('HEADING_TITLE', ''.$_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name'].' is logged on.');

and in the \includes\languages\cherry_zen\english.php override file


// shopping_cart box text in sideboxes/shopping_cart.php

define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart');
define('BOX_SHOPPING_CART_EMPTY', ''.$_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name'].'<br />Cart is empty.');
define('BOX_SHOPPING_CART_DIVIDER', 'ea.- ');

to display customer name in the shopping cart sidebox when cart is empty:clap: