Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Adding Customer email address to order listing page

    HI,

    I am trying to code in an additional link on the orders listing page to email a customer.

    Everything so far is working fine, I have produced the mailto coding which includes a set subject and signature for the message and have included the order ID and various other things in.

    Unfortunately I am struggling to draw the customers email address from the database in order to send the email (obviously a major flaw!)

    I have attempted the following so far with no luck:

    $customers->fields['customers_email_address']
    $orders->fields['customers_email_address']
    $orders->fields['orders_id']
    $order->customer['email_address']

    I feel it should be obvious but I'm not managing it.

    Any help would be much appreciated!

    Thanks
    Sam

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Adding Customer email address to order listing page

    Um ... if you click on a given order, then there will be an "Email" button in the sidebox ... making it easy to send an email to them.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Re: Adding Customer email address to order listing page

    Thanks,

    Unfortunately I don't have this option in the sidebox for some reason. I have Details, Invoice, Shipping Label, Packing Slip and delete, even so it would still be an extra click for every message which I am trying to avoid.

    I can go through to the order details page and click email from there but it would be a million times easier if i could do it off the orders listing page. Just need to know what part of the database its in so I can use that little bit of code to pull up the customers address.

    Sam

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Adding Customer email address to order listing page

    Oh, my bad. The email button does only appear when viewing the order.

    As to your custom coding, the information is in the customers_email_address field of the orders table. You'll have to retrieve that field data in your query and then use it for preparing your link.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Re: Adding Customer email address to order listing page

    So $orders->fields['customers_email_address'] should work? or am I missing something equally as obvious?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Adding Customer email address to order listing page

    I would expect that to work, provided you're dealing with the code in the listing, and not sideboxes or the currently-clicked-on order.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2009
    Posts
    126
    Plugin Contributions
    0

    Default Re: Adding Customer email address to order listing page

    Unfortunately thats not working. Not producing and error but not bringing up the email address either!

 

 

Similar Threads

  1. Change Email Address on old customer order
    By ricangem in forum Managing Customers and Orders
    Replies: 3
    Last Post: 17 Oct 2011, 04:26 AM
  2. Order Confirmation email missing customer address?
    By azwli in forum General Questions
    Replies: 19
    Last Post: 6 Nov 2009, 06:58 AM
  3. Email copy of customer order to second email address
    By WHOSYOURDADDY in forum Customization from the Admin
    Replies: 2
    Last Post: 13 Oct 2009, 03:31 AM
  4. Replies: 4
    Last Post: 9 Jun 2009, 08:17 PM
  5. Adding second customer email address
    By slowawake in forum General Questions
    Replies: 6
    Last Post: 25 Jun 2008, 11:15 AM

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