Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2011
    Location
    UK
    Posts
    41
    Plugin Contributions
    0

    Default Remove Detailed Invoice Link from Email

    Hi, I'm using Zen Cart 1.3.9

    My site is: http://www.furnitureonthemove.co.uk/furniture/

    I'm trying to remove the "detailed invoice" link from the order confirmation email but can't find a working solution. I've tried commenting out this in includes/classes/order.php but it doesn't work:

    PHP Code:
    //    $html_msg['INTRO_URL_TEXT']        = EMAIL_TEXT_INVOICE_URL_CLICK;
    //    $html_msg['INTRO_URL_VALUE']       = zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false); 
    I've tried editing email_template_checkout.html to exclude this item but it doesn't work either.

    What file do I need to edit in order to remove this item from the emails sent out?

    Thanks,
    Sarah

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Remove Detailed Invoice Link from Email

    u will find that in orders.php under admin folder
    Believe it or not But My existence is illusional

  3. #3
    Join Date
    Aug 2011
    Location
    UK
    Posts
    41
    Plugin Contributions
    0

    Default Re: Remove Detailed Invoice Link from Email

    I tried commenting out these in admin/orders.php, but it doesn't work either.

    PHP Code:
    //EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n" . 
    PHP Code:
    //$html_msg['EMAIL_TEXT_INVOICE_URL']  = '<a href="' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') .'">'.str_replace(':','',EMAIL_TEXT_INVOICE_URL).'</a>'; 
    Is there something else to comment out too?
    Last edited by pinksparklegirl; 4 Nov 2011 at 01:31 AM.

  4. #4
    Join Date
    Aug 2011
    Location
    UK
    Posts
    41
    Plugin Contributions
    0

    Default Re: Remove Detailed Invoice Link from Email

    Yay, figured it out! This also needed commenting out in includes/classes/order.php:

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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Remove Detailed Invoice Link from Email

    You should never comment out any $html_msg lines. Those are for html-formatted emails, and if you comment out those lines then the system won't properly replace the placeholders in the html email templates. To remove those pieces from the html emails, leave the $html_msg lines alone, and instead delete the placeholders from the html email template files in the /email/ folder.

    The other things you commented out are fine, because they deal with the text-only emails. It appears you're only using text-only emails in your store presently.
    .

    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.

  6. #6
    Join Date
    Aug 2011
    Location
    UK
    Posts
    41
    Plugin Contributions
    0

    Default Re: Remove Detailed Invoice Link from Email

    I've amender the files as noted and it still works. Some of the text doesn't look right any more now the link has gone.

    This is how the email looked before:


    Hire List Submission from Furniture On The Move

    Sarah Hicks

    Thank you for submitting your hire list to us.
    Your enquiry has been sent to a member of staff who will contact you
    shortly.
    ------------------------------------------------------
    Hire List Number: 19
    Date Submitted: Friday 04 November, 2011
    Detailed Hire List:
    http://www.furnitureonthemove.co.uk/furniture/....

    Comments go here.

    Items
    ------------------------------------------------------
    1 x Twist Table/Stool (Tables Contemporary)
    ------------------------------------------------------

    -----
    Copyright (c) 2011 Furniture On The Move

    And this is what it looks like now:


    Hire List Submission from Furniture On The Move

    Sarah Hicks

    Thank you for submitting your hire list to us. Your enquiry has been sent to
    a member of staff who will contact you shortly.
    --
    ------------------------------------------------------
    Hire List Number: 29
    Date Submitted: Friday 04 November, 2011
    Hire List SubmissionComments go here.

    Items
    ------------------------------------------------------
    1 x Twist Table/Stool (Tables Contemporary)
    ------------------------------------------------------

    -----
    Copyright (c) 2011 Furniture On The Move
    ---

    How do I get a break so the comments start on a new line and why have I how got the email title inserted again just before the comments start?

    Any help would be appreciated.

    Thanks,
    Sarah

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Remove Detailed Invoice Link from Email

    You'd need to add the "\n\n" back in from the end of the line you commented out.
    .

    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.

  8. #8
    Join Date
    Aug 2011
    Location
    UK
    Posts
    41
    Plugin Contributions
    0

    Default Re: Remove Detailed Invoice Link from Email

    That's what I thought but I can't seem to work out where to put it. Where do I place it?

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Remove Detailed Invoice Link from Email

    You commented-out that line, including the "\n\n" .
    So, if you want to keep the "\n\n" .
    then add it on its own line below the commented-out line
    .

    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.

  10. #10
    Join Date
    Aug 2011
    Location
    UK
    Posts
    41
    Plugin Contributions
    0

    Default Re: Remove Detailed Invoice Link from Email

    I just tried that (with both files), but it didn't work.

    PHP Code:
    //EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n\n" .
    "\n\n"
    and

    PHP Code:
    //EMAIL_TEXT_INVOICE_URL . ' ' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $zf_insert_id, 'SSL', false) . "\n\n";
    "\n\n"
    Is this not what you meant?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 22 Jul 2011, 06:16 PM
  2. Detailed Invoice Link
    By defvayne23 in forum General Questions
    Replies: 2
    Last Post: 1 Feb 2010, 06:17 PM
  3. removing detailed invoice link from emails
    By craftzombie in forum General Questions
    Replies: 10
    Last Post: 24 Jan 2010, 12:43 AM
  4. Removing Detailed Invoice link from order update emails
    By fairylite in forum Managing Customers and Orders
    Replies: 14
    Last Post: 6 Feb 2009, 12:16 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