Jump to content

Remove {shop_url} From Email


limeradio

Recommended Posts

Hello Guys

Today i'm here to ask you some help by removing the shop url from email template:

1. i have my customized email template and there was no contains of  {shop_url} in template.

2. i erased code from mail.php: 
            $templateVars['{shop_url}'] = Context::getContext()->link->getPageLink(
                'index',
                true,
                $idLang,
                null,
                false,
                $idShop
            );

3. After removing of there code that shop url is not longer exists in email but you can see {shop_url}.

Please take the attachment as reference.

 

What should i do????

Image_20231005155833.png

Edited by limeradio (see edit history)
Link to comment
Share on other sites

10 minutes ago, Eutanasio said:

it's not there where you need to edit. go to the admin > International > translations and translate the theme for each language in the template you're using. For each email template you need to delete the url manually

Thanks for your reply, that i have my customized email template , and all of theme don't contains any {shop_url} code, there it's so wired that appears shop url in email.

Link to comment
Share on other sites

5 minutes ago, Eutanasio said:

can you share the code of your custom email templates?

sure,

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p></p>
<!-- [if IE]><div class="ie-container"><![endif]-->
<p></p>
<!-- [if mso]><div class="mso-container"><![endif]-->
<table id="u_body" style="border-collapse: collapse; table-layout: fixed; border-spacing: 0; mso-table-lspace: 0pt; mso-table-rspace: 0pt; vertical-align: top; min-width: 320px; margin: 0 auto; background-color: #ffffff; width: 100%;" cellpadding="0" cellspacing="0">
<tbody>
<tr style="vertical-align: top;">
<td style="word-break: break-word; border-collapse: collapse !important; vertical-align: top;"><!-- [if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #ffffff;"><![endif]-->
<div class="u-row-container v-row-background-color" style="padding: 0px; background-color: #ecf0f1;">
<div class="u-row v-row-columns-background-color-background-color" style="margin: 0 auto; min-width: 320px; max-width: 600px; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; background-color: transparent;">
<div style="border-collapse: collapse; display: table; width: 100%; height: 100%; background-color: transparent;"><!-- [if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td class="v-row-background-color" style="padding: 0px;background-color: #ecf0f1;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:600px;"><tr class="v-row-columns-background-color-background-color" style="background-color: transparent;"><![endif]--> <!-- [if (mso)|(IE)]><td align="center" width="600" style="background-color: #ecf0f1;width: 600px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
<div class="u-col u-col-100" style="max-width: 320px; min-width: 600px; display: table-cell; vertical-align: top;">
<div style="background-color: #ecf0f1; height: 100%; width: 100% !important; border-radius: 0px; -webkit-border-radius: 0px; -moz-border-radius: 0px;"><!-- [if (!mso)&(!IE)]><!-->
<div style="box-sizing: border-box; height: 100%; padding: 0px; border-radius: 0px; -webkit-border-radius: 0px; -moz-border-radius: 0px; border: 0px solid transparent;"><!--<![endif]-->
<table style="font-family: 'Open Sans',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody>
<tr>
<td style="padding: 0px; font-family: Montserrat, sans-serif; font-size: 0px; line-height: 0px; color: #ffffff;" align="center" height="0">You have created a customer account on Chicstore.</td>
</tr>
<tr>
<td class="v-container-padding-padding" style="overflow-wrap: break-word; word-break: break-word; padding: 10px; font-family: 'Open Sans',sans-serif;" align="left">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td style="padding-right: 0px; padding-left: 0px;" align="center"><img align="center" border="0" src="https://www.chicstore.it/img/image-5.png" alt="" title="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; clear: both; display: inline-block !important; border: none; height: auto; float: none; width: 100%; max-width: 580px;" width="580" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table style="font-family: 'Open Sans',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody>
<tr>
<td class="v-container-padding-padding" style="overflow-wrap: break-word; word-break: break-word; padding: 10px; font-family: 'Open Sans',sans-serif;" align="left">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr>
<td style="padding-right: 0px; padding-left: 0px;" align="center"><img align="center" border="0" src="https://www.chicstore.it/img/image-6.jpeg" alt="" title="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; clear: both; display: inline-block !important; border: none; height: auto; float: none; width: 40%; max-width: 232px;" width="232" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table id="u_content_heading_1" style="font-family: 'Open Sans',sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody>
<tr>
<td class="v-container-padding-padding" style="overflow-wrap: break-word; word-break: break-word; padding: 10px 10px 40px; font-family: 'Open Sans',sans-serif;" align="left">
 

 

Edited by limeradio (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...