Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2013
    Location
    White City
    Posts
    2
    Plugin Contributions
    0

    Default Can I get newsletter status on order confirmation email?

    How do I get the customers newsletter status (Subscribed or Unsubscribed) to appear on the Office Use Only area of the Order Confirmation email so that I can have a hard copy of the newsletter status for record keeping.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Can I get newsletter status on order confirmation email?

    You will need to some custom coding.

    1. Since you're using v1.5.1, you'll need to start by making this change to the core functions_email.php file to add the ability to include additional office-use-only data: https://github.com/zencart/zencart/c...867cdc615f64cf

    2. Then edit the order.php class file's send_order_email function to pass an extra array of information to the email_collect_extra_info function call, to include the newsletter status. Of course you'll need to get that status from the database first by running a custom query to obtain it.
    .

    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.

 

 

Similar Threads

  1. v151 Order confirmation email not sent to customers but I get a copy
    By Olet in forum General Questions
    Replies: 1
    Last Post: 13 May 2014, 08:02 PM
  2. since a change of server I no longer get the email confirmation of order
    By Phieziem in forum Customization from the Admin
    Replies: 1
    Last Post: 1 Oct 2009, 07:03 PM
  3. Can I change product details in order confirmation email?
    By ducksigns in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2007, 11:29 PM
  4. can't get any email confirmation orders
    By oavs in forum Managing Customers and Orders
    Replies: 4
    Last Post: 9 Feb 2007, 05:35 AM
  5. how can i add coupon to order confirmation email?
    By fulltilt in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Oct 2006, 06:02 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