Zen Cart Logo
Forums / Managing Customers and Orders / Removing Detailed Invoice link from order update emails

Removing Detailed Invoice link from order update emails

Locked

Views: 3,137

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
5 Feb 2009, 3:17 AM
#1
fairylite avatar

fairylite

New Zenner

Join Date:
Jul 2008
Posts:
17
Plugin Contributions:
0

Removing Detailed Invoice link from order update emails

I'm trying to remove the detailed invoice link that appears in emails that my customers receive when they get an email notifying them of order updates. Like so:

Dear xxx,
Store name
Order Number: ###
Detailed Invoice <-- I want to remove this link in both HTML & Text
Date Ordered: Wednesday 04 February, 2009
Your order has been updated to the following status:
New status: Completed
Please reply to this email if you have any questions.

I've seen this thread: http://www.zen-cart.com/forum/showthread.php?t=54243&highlight=remove+url

and have updated my files according to the instructions, but the link is still showing up.

Any ideas? I'm using the default template, no custom templates or anything. I do have the TY package tracker, if that makes a difference.

I want to remove the link because it shows up as https://www.domainA.com/B in order update emails only (but not order confirmation emails which shows https://www.domainB.com), and I prefer to keep the two separate (https://www.domainA.com and https://www.domainB.com are sharing the same webspace; domainB is a subdomain of domainA, and it's just a custom URL that I purchased to redirect/mask the fact that I'm also using domainA). If I can't modify it, then I don't mind taking it out altogether.

5 Feb 2009, 5:22 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Removing Detailed Invoice link from order update emails

fairylite:

I want to remove the link because it shows up as https://www.domainA.com/B in order update emails only (but not order confirmation emails which shows https://www.domainB.com), and I prefer to keep the two separate (https://www.domainA.com and https://www.domainB.com are sharing the same webspace; domainB is a subdomain of domainA, and it's just a custom URL that I purchased to redirect/mask the fact that I'm also using domainA). If I can't modify it, then I don't mind taking it out altogether.

If the link is being generated wrong, then your /admin/includes/configure.php file has incorrect settings for these:```
define('HTTP_CATALOG_SERVER', 'http://URL');
define('HTTPS_CATALOG_SERVER', 'https://URL');

define('DIR_WS_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

5 Feb 2009, 7:10 AM
#3
fairylite avatar

fairylite

New Zenner

Join Date:
Jul 2008
Posts:
17
Plugin Contributions:
0

Re: Removing Detailed Invoice link from order update emails

DrByte:

If the link is being generated wrong, then your /admin/includes/configure.php file has incorrect settings for these:```
define('HTTP_CATALOG_SERVER', 'http://URL');
define('HTTPS_CATALOG_SERVER', 'https://URL');

define('DIR_WS_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');


I checked and you were right - it was pointing to DomainA. However, I just changed it all to point to DomainB and it's still showing up in the order updates as DomainA. 

Any other ideas? I appreciate your help!
5 Feb 2009, 7:28 AM
#4
fairylite avatar

fairylite

New Zenner

Join Date:
Jul 2008
Posts:
17
Plugin Contributions:
0

Re: Removing Detailed Invoice link from order update emails

Spoke too soon! I used the Developer's tool kit and found that the configure file in my other subdirectory was causing the problem.

Thanks so much! :)

5 Feb 2009, 2:20 PM
#5
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Removing Detailed Invoice link from order update emails

This is exactly what I was looking for but I am having trouble figuring out what to put in the configure file to get the email link working.

At the moment that part of my file reads as follows:

define('HTTP_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_SERVER', 'https://www.plantperfection.co.uk');
define('HTTP_CATALOG_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_CATALOG_SERVER', 'https://www.plantperfection.co.uk');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'false');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/~admin156/admin/');
define('DIR_WS_CATALOG', '/~admin156/');
define('DIR_WS_HTTPS_ADMIN', '/~admin156/admin/');
define('DIR_WS_HTTPS_CATALOG', '/~admin156/');

Any thoughts would be much appreciated,

Stuart

5 Feb 2009, 4:12 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Removing Detailed Invoice link from order update emails

Stuart, it would help to know what the undesired link is showing up as, and what the desired link should be.
Keep in mind that the link is built based on your SSL configuration, so will point to the HTTPS URL automatically. Having your own dedicated SSL will help with the appearances concern that I'm guessing you're having.

5 Feb 2009, 4:40 PM
#7
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Removing Detailed Invoice link from order update emails

Thanks for getting back to me. The link is showing with a 404 Not Found title and the following error: "The requested URL /achachleat/login.php was not found on this server." The address appearing in the title bar is "http://stargate.terrassl.net/NEWLOGINNAME/login.php" (JUST USING NEWLOGINNAME FOR TESTING) though I am typing "http://www.plantperfection.co.uk/NEWLOGINNAME" (I also tried the same but with https)

I do have my own (not shared) ssl installed on the site.

My admin configure.php file currently reads like this (I have only included what I think is the relevant area):

define('HTTP_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_SERVER', 'https://www.plantperfection.co.uk');
define('HTTP_CATALOG_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_CATALOG_SERVER', 'https://www.plantperfection.co.uk');

define('DIR_WS_ADMIN', '/~admin156/admin/');
define('DIR_WS_CATALOG', '/~admin156/');
define('DIR_WS_HTTPS_ADMIN', '/~admin156/admin/');
define('DIR_WS_HTTPS_CATALOG', '/~admin156/');

define('DIR_FS_ADMIN', '/var/www/html/admin/');
define('DIR_FS_CATALOG', '/var/www/html/');

I have been trying to change it as follows:

define('HTTP_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_SERVER', 'https://www.plantperfection.co.uk');
define('HTTP_CATALOG_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_CATALOG_SERVER', 'https://www.plantperfection.co.uk');

define('DIR_WS_ADMIN', '/NEWLOGINNAME/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/NEWLOGINNAME/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_FS_ADMIN', '/var/www/html/NEWLOGINNAME/');
define('DIR_FS_CATALOG', '/var/www/html/');

I have then renamed the 'admin' folder to 'NEWLOGINNAME' but no joy.

And, like the previous poster, the reason I am trying to get it changed is that the order update emails currently generated by zen cart have the wrong link embedded which it seems from your post to him is because I have this file set up wrong.

Thanks again for your help,

Stuart

5 Feb 2009, 4:59 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Removing Detailed Invoice link from order update emails

Assuming your storefront is working properly with SSL, what are those same settings from your storefront's /includes/configure.php file?

5 Feb 2009, 5:27 PM
#9
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Removing Detailed Invoice link from order update emails

Update:
After contact with my hosts I have now realised what I was missing (my number within the server should have prefixed the '/admin/') and I have now managed to change the address so I can succesfully go to and use the admin at the new address.

HOWEVER:
It hasn't sorted the issue with order update emails - the embedded link is still dead!

The info you asked about from the main storefront configure.php file (the storefront is all working ok):

define('HTTP_SERVER', 'http://www.plantperfection.co.uk');
define('HTTPS_SERVER', 'https://www.plantperfection.co.uk');

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '/var/www/html/');

Thanks again,

Stuart

5 Feb 2009, 5:44 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Removing Detailed Invoice link from order update emails

skyegospel:

The info you asked about from the main storefront configure.php file (the storefront is all working ok):

define('HTTP_SERVER', 'http://www.plantperfection.co.uk');
define('HTTPS_SERVER', 'https://www.plantperfection.co.uk');

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '/var/www/html/');

So ... make your admin file's catalog-link-settings match your main settings:

define('HTTP_CATALOG_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_CATALOG_SERVER', 'https://www.plantperfection.co.uk');

define('DIR_WS_CATALOG', '/~admin156/');

define('DIR_WS_HTTPS_CATALOG', '/~admin156/');

...

would become something like:

define('HTTP_CATALOG_SERVER', 'http://www.plantperfection.co.uk');
define('HTTPS_CATALOG_SERVER', 'https://www.plantperfection.co.uk');

define('DIR_WS_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

5 Feb 2009, 6:23 PM
#11
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Removing Detailed Invoice link from order update emails

My host told me to adjust it to the fololowing (this is the admin file):

define('HTTP_SERVER', 'http://stargate.terrassl.net');
define('HTTPS_SERVER', 'https://www.plantperfection.co.uk');
define('HTTP_CATALOG_SERVER', 'http://www.plantperfection.co.uk');
define('HTTPS_CATALOG_SERVER', 'https://www.plantperfection.co.uk');

define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'false');

define('DIR_WS_ADMIN', '/~admin156/newsitename/');
define('DIR_WS_CATALOG', '/~admin156/');
define('DIR_WS_HTTPS_ADMIN', '/~admin156/newsitename/');
define('DIR_WS_HTTPS_CATALOG', '/~admin156/');

define('DIR_FS_ADMIN', '/var/www/html/newsitename/');
define('DIR_FS_CATALOG', '/var/www/html/');

It is working like this - all except for that email! Is there even a way I could remove the link and just have a link to the main web site with something like "Log in at https://www.plantperfection.co.uk to view your order details"??

Thankis again,

Stuart

5 Feb 2009, 6:29 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Removing Detailed Invoice link from order update emails

What IS the bad link it's creating?

5 Feb 2009, 8:33 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: Removing Detailed Invoice link from order update emails

So ... what's wrong with that link? Should it not include the ~admin156 part? If so, remove it from your config file as I'd mentioned earlier.

5 Feb 2009, 11:16 PM
#15
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: Removing Detailed Invoice link from order update emails

DrByte - Thank you so much for your patience!! I just wasn't quite getting my mind around this, but have now done what you were advising and hey presto! ALl working like a dream.

Many thanks - I am a very relieved man!

Stuart