Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Order Number combined with Customer ID

    Hello,

    Like to know is there any possibility where we can combine the order number generated by zencart with customer ID as final order number visible to customer.

    Ex:
    Order Number: 3256, Customer ID: 199
    Combined Visible Order Number: 3256000199 or 1990003256

    Any help appreciated.

    ~Time

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Order Number combined with Customer ID

    Quote Originally Posted by time111 View Post
    Hello,

    Like to know is there any possibility where we can combine the order number generated by zencart with customer ID as final order number visible to customer.

    Ex:
    Order Number: 3256, Customer ID: 199
    Combined Visible Order Number: 3256000199 or 1990003256

    Any help appreciated.

    ~Time
    I really should know the answer to this, but haven't looked at that page enough to know. Are both of those pieces of informmation that are currently displayed on that page, but separated? Is this value going to be stored somewhere? Won't it be difficult to identify who is who as the number of customers increases and the number of orders also increases? (Ie, how many zeros are going to prefix the customer id to make this work?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: Order Number combined with Customer ID

    Still nobody? is this wrong category I posted?

  4. #4
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Order Number combined with Customer ID

    The customer id and order id are auto incremented values in the database tables. While you could concatenate them in any html or emails, to actually use the combined value to reference order information would require a substantial rewrite of the cart code.

  5. #5
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: Order Number combined with Customer ID

    Quote Originally Posted by badarac View Post
    The customer id and order id are auto incremented values in the database tables. While you could concatenate them in any html or emails, to actually use the combined value to reference order information would require a substantial rewrite of the cart code.
    Hi,

    This idea also look fine, can anybody tell how to call customer ID from database to places where order ID is visible like My Account, Order Status Emails etc....

    ~Time

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Order Number combined with Customer ID

    Quote Originally Posted by time111 View Post
    Hi,

    This idea also look fine, can anybody tell how to call customer ID from database to places where order ID is visible like My Account, Order Status Emails etc....

    ~Time
    Should be a session value with no database lookup necessary unless using something like COWOA where there is no "login" per se, I think. Not sure that when one returns to the site to look up a past order if a SESSION variable is initiated to capture the details of the user or not. Otherwise it is a SQL query to the database or a simple display of information to be added or already gathered in the header_php.php, main_template_vars.php of the page's pages directory, or similar. (Ie. includes/modules/pages/PAGENAME/)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,683
    Plugin Contributions
    123

    Default Re: Order Number combined with Customer ID

    Re-read @badarac's answer, which is correct. This idea isn't practical.
    If you want to make your store look like it has processed more orders, bump the order id using Tools->Store Manager.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Sep 2008
    Posts
    95
    Plugin Contributions
    0

    Default Re: Order Number combined with Customer ID

    it is nothing to do with more or less orders, by adding customer ID we can use that in logistics/admin to know customer just by ID. only order number will need update of database every time for offline usage.

    I only want both order ID and customer ID should be visible together, do not need to fiddle with auto incremental of anything.

    ~Time
    Last edited by time111; 12 Oct 2014 at 09:37 PM.

 

 

Similar Threads

  1. Customer Number In Order?
    By sweetikins in forum General Questions
    Replies: 4
    Last Post: 6 Nov 2011, 08:04 PM
  2. Customer Order History shown negative number...???
    By khiang in forum Managing Customers and Orders
    Replies: 0
    Last Post: 2 Aug 2011, 06:31 AM
  3. Adding customer fax number to admin order display
    By cjsmiff in forum Customization from the Admin
    Replies: 0
    Last Post: 5 Mar 2010, 02:31 AM
  4. customer order / purchase number
    By Shane78 in forum General Questions
    Replies: 0
    Last Post: 24 Aug 2009, 02:33 PM
  5. Add Customer Telephone Number To Order Confirmation
    By betelguise in forum General Questions
    Replies: 0
    Last Post: 28 Feb 2008, 03:11 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR