Jump to content

Url Variables In Emails Not Working - Cant Save Changes! Driving Me Insane!


EXCORP

Recommended Posts

Im beyond frustrated with trying to figure this out.

I am hoping someone can explain this to me barney style as I am pulling my hair out. 

 

Ok so the URL variables in all emails from the system (Forgot password, order confirmation - ALL of them)

have a dreaded %7Bshop_url%7D  instead of "{shop_url}"

I cannot get these changed.

 

Obviously because of the odd% and numbers, the links are not clickable via the email for the customer. 

I have tried changing every single html template in my cpanel - DOESNT SAVE

I have tried changing it in translations - DOESNT SAVE

 

This is SO annoying that I cannot get this fixed.

I mean really.. if someone forgets their password and the link doesnt work in their email for the forgot password - how the heck are they to get a password!! 

 

 

Not only am I frustrated by my customers and affiliates are too.

 

How in the heck does this get fixed????

 

I followed one method previous about changing out the admintranslationscontroller.php - Yeah ok - so what it did after I loaded it is not let me in the translations section AT ALL.. so I had to revert it back.

 

Below is an example of an email template.

 

I switched to prestashop from opencart.. and with these little issues, Im about ready to switch back. TOO many programming issues I have come accross in 2 months

 

Can someone please advise me or point where where to go to fix this?

Makes NO Sense to have url links in an email that DONT work!! 

 

 

 

 

 

 

<table class="table table-mail" style="width:100%;margin-top:10px;"><tbody><tr><td class="space" style="width:20px;padding:7px 0;"> </td>
<td style="padding:7px 0;" align="center">
<table class="table" style="width:100%;" bgcolor="#ffffff"><tbody><tr><td class="logo" style="border-bottom:4px solid #333333;padding:7px 0;" align="center"><a style="color:#337ff1;" title="{shop_name}" href="%7Bshop_url%7D"> <img src="%7Bshop_logo%7D" alt="{shop_name}" /></a></td>
</tr><tr><td class="titleblock" style="padding:7px 0;" align="center"><span style="color:#555454;font-family:'Open-sans', sans-serif;font-size:small;"> <span class="title" style="font-weight:500;font-size:28px;text-transform:uppercase;line-height:33px;">Hi {firstname} {lastname},</span> </span></td>
</tr><tr><td class="space_footer" style="padding:0;"> </td>
</tr><tr><td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0;">
<table class="table" style="width:100%;"><tbody><tr><td style="padding:7px 0;" width="10"> </td>
<td style="padding:7px 0;">
<p style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:18px;padding-bottom:10px;">Order {order_name} - Processing</p>
<span style="color:#777;"> We are currently processing your <strong><span style="color:#333;">{shop_name}</span></strong> order with the reference <strong><span style="color:#333;">{order_name}</span></strong>. </span></td>
<td style="padding:7px 0;" width="10"> </td>
</tr></tbody></table></td>
</tr><tr><td class="space_footer" style="padding:0;"> </td>
</tr><tr><td class="linkbelow" style="padding:7px 0;"><span style="color:#555454;font-family:'Open-sans', sans-serif;font-size:small;"> You can review your order and download your invoice from the <a style="color:#337ff1;" href="%7Bhistory_url%7D">"Order history"</a> section of your customer account by clicking <a style="color:#337ff1;" href="%7Bmy_account_url%7D">"My account"</a> on our shop. </span></td>
</tr><tr><td class="linkbelow" style="padding:7px 0;"> </td>
</tr><tr><td class="space_footer" style="padding:0;"> </td>
</tr><tr><td class="footer" style="border-top:4px solid #333333;padding:7px 0;"><a style="color:#337ff1;" href="%7Bshop_url%7D">{shop_name}</a></td>
</tr></tbody></table></td>
<td class="space" style="width:20px;padding:7px 0;"> </td>
</tr></tbody></table><p> </p>
 
Link to comment
Share on other sites

The problem seems to be your editor, whatever editor you are using it's changing the brackets into their escaped characters.

My suggestion is to download the file into your computer, use a code editor (Notepad++, Vim, Sublime Text, Gedit, whatever) and replace %7B with { and %7D with }, save the file, upload it back to server.

Link to comment
Share on other sites

I had the same problem on my client's store but didn't discover what was causing that change. Doing as gabdara suggests - downloading the files, editing in Notepad++ and not touching them again helped, but I'm still a bit confused why that happened (even few times, after making the fix, the brackets got converted back somehow). I can only guess that the client was making some changes and didn't tell me.

 

Let us know if you find the cause. Do you edit the emails using some editor or only by the translations features?

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