Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2012
    Location
    Solihull, UK
    Posts
    9
    Plugin Contributions
    0

    Default How do I customize the order totals section of the order confirmation email?

    Hi Guys

    I need to customize the order totals section of the order confirmation email.

    I currently have:

    Sub-Total: £4.50
    Zone Rates (Shipping to GB (1 x 50.00lb(s))): £1.50
    EEC VAT 20%: £1.00
    Total: £6.00


    And I would like to see:

    Sub-Total:£4.50
    Delivery Charge: £1.50
    Total: £6.00

    (Includes VAT 20%: £1.00)

    I've managed to change "Zone Rates" to "Delivery Charge" and I know I need to alter the includes/classes/order.php file somehow, but I'm struggling. Can anyone assist please?

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How do I customize the order totals section of the order confirmation email?

    You can change most of the text through appropriate language files.

    Changing the email can be done in includes/classes/order.php. Your going to be working about line 980 ish. But, changing the order that the order totals are displayed is going to be kind of interesting to be honest. You would have to remove one from the existing loop. Then below the existing loop add in the one that you have removed. If that makes no sense to you at all I'd say with this particular file it might be worth finding someone to do it for you...

  3. #3
    Join Date
    Feb 2012
    Location
    Solihull, UK
    Posts
    9
    Plugin Contributions
    0

    Default Re: How do I customize the order totals section of the order confirmation email?

    Thanks for the quick response Nick,

    I changed the subtotals-order in the admin panel, the only undesirable bit I am left with now is (Shipping to GB (1 x 50.00lb(s))).

    Any ideas where that comes from? If I know where it's defined I can remove it from the order.php file.

    Also the crazy A symbols were appearing because one of my language.php files was using a different char set from the others.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How do I customize the order totals section of the order confirmation email?

    Admin->Configuration->Shipping/Packaging->Display Number of Boxes and Weight Status
    Display Shipping Weight and Number of Boxes?

    0= off
    1= Boxes Only
    2= Weight Only
    3= Both Boxes and Weight
    .

    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
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How do I customize the order totals section of the order confirmation email?

    Doesn't changing the order in admin also change the order in which the order totals are applied? So, if you want to apply them in one order (which the logic dictates) but display them in another order then you are going to have to do some work on the code. Is that not correct?

 

 

Similar Threads

  1. Removing the totals on the order confirmation page
    By Jakesza in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Apr 2011, 12:16 PM
  2. How do I Edit Order of Order Totals in Order Confirmation Email?
    By toussi in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Mar 2009, 08:05 AM
  3. Order Confirmation Email - How to Customize the format?
    By daffy in forum General Questions
    Replies: 2
    Last Post: 31 Dec 2008, 01:10 AM
  4. Replies: 7
    Last Post: 21 Jun 2008, 01:07 AM
  5. Customize the Order Confirmation E-Mail?
    By ehdesign in forum General Questions
    Replies: 3
    Last Post: 14 Dec 2007, 12:46 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