Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default removing detailed invoice link from emails

    I am trying to remove the detailed invoice link from my text-only confirmation emails. There's not much about this on the boards. One thread talked about removing the shipping address and it said to delete the code from includes/classes/order.php, so i figured I could make my changes in the same file.

    So when I remove:

    EMAIL_TEXT_INVOICE_URL . ' ' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false) . "\n\n";


    from this file, my order confirmation emails change from this:


    Date Ordered: Friday 22 December, 2006
    Detailed Invoice:
    http://www.mywebsite.com/cart/index....fo&order_id=XX

    Products
    ------------------------------------------------------
    1 x Blade Runner - Director's Cut Linked (DVD-BLDRNDC) = $30.00


    to:

    Date Ordered: Friday 22 December, 2006
    Order ConfirmationProducts
    ------------------------------------------------------
    1 x Hewlett Packard - by attributes (HPLJ1100XI) = $300.00


    Why is it placing "Order ConfirmationProducts" in the space where the detailed invoice link used to be? I use Outlook, but tested this on Yahoo Mail just to make sure and it is still appearing this way.

    Am I not supposed to delete this code? Should I make my changes elsewhere? And where would I go to remove the same link from my order update text only emails? Your assistance would be spectacular and extremely appreciated!

  2. #2
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: removing detailed invoice link from emails

    You are VERY close :)

    Code:
        EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n" .
        EMAIL_TEXT_INVOICE_URL . ' ' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false) . "\n\n";
    Note the . at the end of the first line, and the ; at the end of the second one.

    If you remove the second line, you need to also remove the dot from previous line and replace it with semicolon.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default Re: removing detailed invoice link from emails

    Quote Originally Posted by DrByte View Post
    You are VERY close :)

    Code:
        EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n" .
        EMAIL_TEXT_INVOICE_URL . ' ' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false) . "\n\n";
    Note the . at the end of the first line, and the ; at the end of the second one.

    If you remove the second line, you need to also remove the dot from previous line and replace it with semicolon.
    Wow DrByte, thank you so much. That is definitely one I NEVER would've figured out on my own! Do you know where I would go to remove the detailed invoice link from the order update emails?

  4. #4
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: removing detailed invoice link from emails

    /admin/orders.php
    line 106 has this:
    Code:
          EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n" .
    Just put // at the front of that line.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: removing detailed invoice link from emails

    everytime I update I have to find this thread, and it always takes me forever.

  6. #6
    Join Date
    Jul 2006
    Posts
    496
    Plugin Contributions
    0

    Default Re: removing detailed invoice link from emails

    Quote Originally Posted by chrisareas View Post
    everytime I update I have to find this thread, and it always takes me forever.
    This is what I like to do.... At the top of this thread, click on "Thread Tools" and email this page to yourself. Save it in a folder called ZenCart in your email program and then you'll always be able to find it easily.

    Or you can also click on "Thread Tools" and subscribe to the thread. From there you can click on "User CP" and then on "List Subscriptions" and you can find it there. Underneath "List Subscriptions", you can click on "Edit Folders" to create a new folder and then you can organize them the way you want.

    I just like to send it to my Outlook because thats where everything is and its easier for me.

    You have a very nice site by the way!

  7. #7
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: removing detailed invoice link from emails

    thanks for the tip and compliment! I'm starting to do the subscription thing with other threads I see as potentially helpful.

  8. #8

    Default Re: removing detailed invoice link from emails

    in emails folder

    in file: email_template_checkout.html

    u have to remove:

    <a href="$INTRO_URL_VALUE">$INTRO_URL_TEXT</a>

  9. #9

    Default Re: removing detailed invoice link from emails

    Here is my problem, the order confirmation, and the coupon e-mail both show my links to be storename/storename/xxxxx. Attached is a .jpg of what I am talking about. Where do I change this? I want to keep the detailed invoice feature, but I want it to go to the right place. If I remove the second "storename" It goes to the right place.
    Attached Images Attached Images  

  10. #10

    Default Re: removing detailed invoice link from emails

    Quote Originally Posted by cuttinboards.com View Post
    Here is my problem, the order confirmation, and the coupon e-mail both show my links to be storename/storename/xxxxx. Attached is a .jpg of what I am talking about. Where do I change this? I want to keep the detailed invoice feature, but I want it to go to the right place. If I remove the second "storename" It goes to the right place.
    Ok, after testing, the initial order confirmation displays the detailed invoice correctly, but processing, delivered, update status showing incorrect detailed invoice on the invoices.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 21 May 2007, 08:24 PM
  2. Customer doesn't receive emails, I receive copies
    By repairman in forum Managing Customers and Orders
    Replies: 4
    Last Post: 29 Oct 2006, 03:51 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
  •