Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Asigning Customer Numbers?

    Hello,

    I have launched my new site and have started to receive orders. A few things that are troubleing me are this:

    1st: I am using Quickbooks for my invoicing and order management. I asign each new customer a customer #. Is there a way for me to asign a customer number to each customer in Zencart? How can I add a field for this in the admin?

    2nd: Is there a way for me to have the "New Order" emails that I receive come from the customers email address instead of the name of my shopping cart? I use a contact management software that will automatically link the "New Order Email" to the email address that I have on file.

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Asigning Customer Numbers?

    Both of these points are possible, however, you do need to have some knowledge of PHP, and not something which I recommend to everyone, as it does edit a CORE class, without override.

    1 - You would need to add a new field to the customers_info table of the database, and then update the admin/customers.php file accordingly, to both show and edit this new field.

    2 - If you want your order emails to come from a customer, rather than your store, you need to BACKUP and then edit includes/classes/order.php

    Line 1012 - 1013 of a zen 1.3.8 install is :
    Code:
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
    This is the code which sends the ADMIN STAFF the email, rather than the customer. The customer's email will still appear to come from your store.

    Replace these lines with
    Code:
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $html_msg, 'checkout_extra', $this->attachArray);
    Good luck,

    Absolute

  3. #3
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Asigning Customer Numbers?

    I made the changes to the file as directed. It does not seem to work.

    Will this change work using the Template Overide System or do I need to edit the original? I created the new file in My Template folder.

  4. #4
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Asigning Customer Numbers?

    Which email Transport method do you use? Where do your current order confirmation emails originate from?

    Absolute

  5. #5
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Asigning Customer Numbers?

    The emaiils originate vis the Zen Shopping Cart. These are the emails that I receive when a customer places an order.

  6. #6
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Asigning Customer Numbers?

    I am using the php email. Should I be using the SMTP email option instead? What is the difference? I have never used PHP email before. I do have my own smtp server etc etc.

  7. #7
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Asigning Customer Numbers?

    I got the Email receipt to come from the Customer. Your suggestion worked.

    Thank you, thank you, thank you. You are a life saver and have made my day!!! Un-Friggin_Beleivable. YES!!!

  8. #8
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Asigning Customer Numbers?

    That's great news! So glad I could help out.

    Good luck with your store,

    Absolute

 

 

Similar Threads

  1. v151 Allocating Customer Numbers
    By tenthilltoys in forum Managing Customers and Orders
    Replies: 1
    Last Post: 9 Sep 2013, 03:04 AM
  2. Customer I.D. numbers
    By tico in forum Managing Customers and Orders
    Replies: 10
    Last Post: 28 Jun 2010, 09:44 PM
  3. Customer Numbers
    By Webskipper in forum Managing Customers and Orders
    Replies: 4
    Last Post: 28 Dec 2008, 08:08 PM
  4. Customer Order Numbers - Checkout Field needed
    By pasher in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 26 Jun 2007, 08:01 PM

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