Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2004
    Posts
    142
    Plugin Contributions
    0

    Default 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

    2. 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/

  2. #2
    Join Date
    Jul 2004
    Posts
    142
    Plugin Contributions
    0

    Default Re: Need to call Customer ID

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

    GJW

    StampCommune.com

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need to call Customer ID

    What was the solution that worked for you?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jul 2004
    Posts
    142
    Plugin Contributions
    0

    Default 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/

  5. #5
    Join Date
    Jan 2009
    Location
    Macclesfield, South Australia
    Posts
    102
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Need to call Customer ID

    When a customer is logged in, there is also:
    $_SESSION['customer_first_name']
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jan 2009
    Location
    Macclesfield, South Australia
    Posts
    102
    Plugin Contributions
    0

    Default 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.');

  8. #8
    Join Date
    Jan 2009
    Location
    Macclesfield, South Australia
    Posts
    102
    Plugin Contributions
    0

    Default 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.-&nbsp;');

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

 

 

Similar Threads

  1. v139f Call customer information on Checkout Success
    By Gomlers in forum Managing Customers and Orders
    Replies: 4
    Last Post: 29 Jan 2012, 05:47 PM
  2. Add Customer - Call to undefined function w/ blank page
    By buildingblocks in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 Jul 2011, 02:45 PM
  3. Call Customer Name in Header
    By killertofu in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jun 2008, 01:21 AM
  4. What if an existing customer wants to call in an order?
    By armenhammer11 in forum General Questions
    Replies: 2
    Last Post: 14 Dec 2007, 09:17 PM
  5. Call order_id in customer email
    By numinix in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 11 Jul 2007, 07:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg