Jump to content

[Resolved] email link Visit the store wrong


foz1234

Recommended Posts

Hi

Order Confirmation email, the link at the bottom of the page Visit the store, where does this pick it up the domain/url?

i have spent about 4 hours looking before asking .

my old host i had to be on port :8446 for ssl but now i don't with new host, except the store is still showing the domain:8446 in the email link

the store settings / ssl are correct without the port, I've cleaned the cache many times, looked at the email templates etc looked at ini.inc.php line that's correct

## Detect if SSL is enabled

if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS'])!== 'off' && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == true) || $_SERVER['SERVER_PORT'] == 443) {

define('CC_SSL', true);

} else {

define('CC_SSL', false);

}

all to no avail.

thanks

Link to comment
Share on other sites

It's probably in the email Content template.

Goto File Manager>Email Templates>Email Templates tab at top of page>Default Emails

Edit Source Code of HTML Content tab and also in the Plain Text Content.

Here's a copy of ours:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body bgcolor="#f7f7f7"><meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">html, body, table {
	font-family: Arial;
	font-size: 14px;
}
</style>
</body>
</html>
<title>Default HTML Template</title>
<base href="{$DATA.storeURL}" />
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody>
		<tr>
			<td align="center">
			<table bgcolor="#ffffff" border="0" cellpadding="15" cellspacing="0" width="580">
				<tbody>
					<tr>
						<td><a href="{$DATA.storeURL}"><img alt="{$DATA.storeName}" border="0" src="{$DATA.logoURL}" /></a></td>
					</tr>
					<tr>
						<td>{$EMAIL_CONTENT}</td>
					</tr>
					<tr>
						<td>
						<p>We&#39;re here to help,</p>

						<p>Rosemary</p>

						<p>{$DATA.storeName}<br />
						<a href="{$DATA.storeURL}">{$DATA.storeURL}</a></p>
						</td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
	</tbody>
</table>

<p>&nbsp;</p>

 

Link to comment
Share on other sites

The $DATA.storeURL as used in the above email template superstructure, is acquired from $GLOBALS['storeURL'] in mailer.class.php, near line 179.

$GLOBALS['storeURL'] is developed in ini.inc.php from one of several sources.

You can work through the logic beginning at line 85.

Have you made any edits that were needed to accommodate the SSL port being something other than 443?

 

Link to comment
Share on other sites

thanks for your replies

yes indeed dirty butter it was set in there with :8446 hopefully this will fix my issue.

@bsmither yes we edited this line some time ago if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS'])!== 'off' && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == true) || $_SERVER['SERVER_PORT'] == 443) to 8446

but when i upgraded to 6.1.1 this got over written.

hopefully the edit on the Default Email setting will resolve this, i looked everywhere lol ( but not in there :( ) 

thank you

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...