Forums / General Questions / removing detailed invoice link from emails

removing detailed invoice link from emails

Locked

Views: 6,195

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
22 Dec 2006, 10:21 AM
#1
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

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.php?main_page=account_history_info&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!

22 Dec 2006, 5:22 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing detailed invoice link from emails

You are VERY close :)

    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!
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.

22 Dec 2006, 7:55 PM
#3
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: removing detailed invoice link from emails

DrByte:

You are VERY close :)

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?
23 Dec 2006, 1:58 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing detailed invoice link from emails

/admin/orders.php
line 106 has this:```
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!
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.

29 Jan 2008, 12:54 PM
#5
chrisareas avatar

chrisareas

New Zenner

Join Date:
Mar 2007
Posts:
22
Plugin Contributions:
0

Re: removing detailed invoice link from emails

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

30 Jan 2008, 1:36 AM
#6
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: removing detailed invoice link from emails

chrisareas:

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

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. :smile:

You have a very nice site by the way!

31 Jan 2008, 4:49 AM
#7
chrisareas avatar

chrisareas

New Zenner

Join Date:
Mar 2007
Posts:
22
Plugin Contributions:
0

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. :smartalec:

29 Sep 2009, 8:36 AM
#8
shisha avatar

shisha

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

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>

23 Jan 2010, 8:44 PM
#9
cuttinboards_com avatar

cuttinboards_com

New Zenner

Join Date:
Jan 2010
Posts:
6
Plugin Contributions:
0

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.

23 Jan 2010, 9:10 PM
#10
cuttinboards_com avatar

cuttinboards_com

New Zenner

Join Date:
Jan 2010
Posts:
6
Plugin Contributions:
0

Re: removing detailed invoice link from emails

cuttinboards.com:

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.

23 Jan 2010, 11:43 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: removing detailed invoice link from emails

You probably have the wrong settings in your /admin/includes/configure.php files for HTTP_CATALOG_SERVER or HTTPS_CATALOG_SERVER or DIR_WS_CATALOG or DIR_WS_HTTPS_CATALOG.

.
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.