Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2005
    Location
    Tulsa, Ok
    Posts
    174
    Plugin Contributions
    0

    help question Adding The Order Number As Subject In Email

    Hello,

    I would like to change the invoice.php a little bit and I have two questions about it...

    1. Where would I put the file admin/invoice.php so that it's in a custom template to avoid overwrites?
    admin/YOUR_TEMPLATE/invoice.php ???

    2. I'm trying to customize the invoice in several ways, one of which is under the Sold To: section, where it gives the email link. I would like to (if possible!) add the php string to the coding so it would have the Invoice No. as the subject to the email, or have it say, "Email Regarding Invoice Numer (have number listed here)". Does anyone know how to do this? I'm not a php person at all! I see the line that says:

    <td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '">' . $order->customer['email_address'] . '</a>'; ?></td>

    ...which is obviously where to put the coding for the invoice number, and I see that the order/invoice number is coded as:

    <?php echo ENTRY_ORDER_ID . $oID; ?>

    ...but I have no idea how to code that in there! Is it possible???
    "You never really understand a person until you consider things from his point of view . . . until you climb into his skin and walk around in it." --Atticus

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Adding The Order Number As Subject In Email

    C,
    At the present time, there are no overrides in the admin section.
    If you hard code a file:
    1. Keep good records for the next upgrade.
    But, there will be admin override files in the future upgrades to Zen-Cart.

  3. #3
    Join Date
    Mar 2005
    Location
    Tulsa, Ok
    Posts
    174
    Plugin Contributions
    0

    Default Re: Adding The Order Number As Subject In Email

    Well poo. I was hoping to be able to override. Oh well. I'll just keep records. For reference, if I understand right, files that are added (that weren't there to begin with) DON'T get overwritten during upgrades, is that right? So I only need to worry about those that were core file changes?

    Still... if anyone knows how to add that string to the email link, let me know!
    "You never really understand a person until you consider things from his point of view . . . until you climb into his skin and walk around in it." --Atticus

  4. #4
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: Adding The Order Number As Subject In Email

    Hi CelticKatt,

    did you solve your problem with inserting into the subject line?

    I have the same problem but no solution yet.

    If you have a solution could you please` share it with me

    Thanks


    Quote Originally Posted by CelticKatt View Post
    Hello,

    I would like to change the invoice.php a little bit and I have two questions about it...

    1. Where would I put the file admin/invoice.php so that it's in a custom template to avoid overwrites?
    admin/YOUR_TEMPLATE/invoice.php ???

    2. I'm trying to customize the invoice in several ways, one of which is under the Sold To: section, where it gives the email link. I would like to (if possible!) add the php string to the coding so it would have the Invoice No. as the subject to the email, or have it say, "Email Regarding Invoice Numer (have number listed here)". Does anyone know how to do this? I'm not a php person at all! I see the line that says:

    <td class="main"><?php echo '<a href="mailto:' . $order->customer['email_address'] . '">' . $order->customer['email_address'] . '</a>'; ?></td>

    ...which is obviously where to put the coding for the invoice number, and I see that the order/invoice number is coded as:

    <?php echo ENTRY_ORDER_ID . $oID; ?>

    ...but I have no idea how to code that in there! Is it possible???
    Downunder QLD

  5. #5
    Join Date
    Mar 2005
    Location
    Tulsa, Ok
    Posts
    174
    Plugin Contributions
    0

    Default Re: Adding The Order Number As Subject In Email

    No, I moved onto other things and never got around to getting this one solved. I'd still really like to figure it out though, so if anyone knows how, please share!
    "You never really understand a person until you consider things from his point of view . . . until you climb into his skin and walk around in it." --Atticus

  6. #6
    Join Date
    Jan 2006
    Location
    Downunder - QLD - Gold Coast
    Posts
    964
    Plugin Contributions
    0

    Default Re: Adding The Order Number As Subject In Email

    Well I have asked 'regulars' to do it for pay. Let see if I get any answer.
    Downunder QLD

  7. #7
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: Adding The Order Number As Subject In Email

    I think I must not be understanding what you want to do, because Zen Cart does what you're asking by default. That is, when I place a test order in my store, I get an order confirmation email whose subject is, for example, "Order Confirmation No: 10574". That's the order number in the subject.

    Perhaps you want that in a different email sent at another time? So you'd have to track down the code that assembles that order confirmation email and copy and paste it into a new (or modified) file. But when I tried that I found only one instance of $EMAIL_SUBJECT; anywhere in the code base, and that was in the code for the Welcome email. Odd it occurs nowhere else, but that would be a good starting point I guess.

    Rob

 

 

Similar Threads

  1. Adding the telephone number to order confirmation email
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jun 2013, 01:35 AM
  2. v138a Append "Order Status" to the end of the Order Update Email Subject Line
    By kamokid in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jun 2013, 10:18 AM
  3. Adding a part number to order email confirmation
    By PureEffort in forum General Questions
    Replies: 8
    Last Post: 7 Oct 2010, 06:02 AM
  4. How can I place Atribute in the order confirmation email subject line?
    By oavs in forum Managing Customers and Orders
    Replies: 1
    Last Post: 29 Aug 2008, 07:30 AM

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