Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2012
    Posts
    12
    Plugin Contributions
    0

    help question Showing Unit Price in Order Confirmation Email

    What I would like to do is show the unit price (in addition to the total price) in the order confirmation email.

    Because we have multiple websites and a retail location, we use a system other than Zen Cart to send orders to our warehouse and each order must be entered into this system. Having the unit price on the email would save us a bit of time by not having to pull out our calculator for each order.

    I know that this would be added in the PRODUCTS_DETAIL area of the email and I found this in order.php on line 978. The price also shows in the products array of order.php.

    What I don't know is how all these parts work together. Therefore, I don't know how or where to tell Zen Cart that I want to see the unit price in the email. So I have come to the experts. Does anyone have any ideas as to how to accomplish this?

    Thanks,
    framegirl

    w w w . f r a m i n g s u p p l i e s - s h o p . c o m

    Zen Cart 1.5.0
    Linux server
    PHP 5.3.22
    MySQL 5.1.68-cll

    AddOns
    FedEx
    USPS
    Backup-MySQL
    Image Handler 4
    Avonlee Contempo Template
    Dynamic Filter
    Easy Populate 4
    Add Customers from Admin

  2. #2
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: Showing Unit Price in Order Confirmation Email

    Lets whack two birds with one stick.... I also want to show the unit price (in addition to the total price) in my HTML order confirmation email.
    Thought this would be simple but it's kicking my but too!
    Any pointers would be appreciated.

  3. #3
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: Showing Unit Price in Order Confirmation Email

    ZC V1.5.1
    First I inserted this code into orders.php around line 918 which gives me the individual price but it has 4 decimal places which I can't figure out how to truncate to 2 places.
    '<td class="product-details" align="right" valign="top" width="60">' . $this->products[$i] ['price'] . '</td>' . "\n" .

    Then I tried the code at this thread (by DrByte) which should do it for the TEXT emails but I couldn't get it to work for HTML emails.
    "order confirmation email - how do I show per-item price for qty > 0 ?"

  4. #4
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Showing Unit Price in Order Confirmation Email

    Quote Originally Posted by linuxguy2 View Post
    ZC V1.5.1
    First I inserted this code into orders.php around line 918 which gives me the individual price but it has 4 decimal places which I can't figure out how to truncate to 2 places.
    '<td class="product-details" align="right" valign="top" width="60">' . $this->products[$i] ['price'] . '</td>' . "\n" .

    Then I tried the code at this thread (by DrByte) which should do it for the TEXT emails but I couldn't get it to work for HTML emails.
    "order confirmation email - how do I show per-item price for qty > 0 ?"
    Instead of
    PHP Code:
    $this->products[$i] ['price'
    Try
    PHP Code:
    $currencies->format($this->products[$i] ['price']) 

  5. #5
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    304
    Plugin Contributions
    0

    Default Re: Showing Unit Price in Order Confirmation Email



    Purr---fect, Thanks,

 

 

Similar Threads

  1. Replies: 4
    Last Post: 1 May 2013, 12:01 AM
  2. Shipping Method not showing up on Order Confirmation Email
    By brycem in forum Managing Customers and Orders
    Replies: 5
    Last Post: 6 Aug 2012, 07:36 PM
  3. Order Confirmation email showing 'on behalf of'
    By Green333 in forum Managing Customers and Orders
    Replies: 4
    Last Post: 28 Jun 2010, 04:17 AM
  4. Order Confirmation email suddenly stopped showing delivery and coupon info?
    By meltdowncomics in forum Managing Customers and Orders
    Replies: 3
    Last Post: 23 Jan 2009, 02:32 AM
  5. order confirmation email - how do I show per-item price for qty > 0 ?
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 29 Dec 2007, 10:20 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