Jump to content

Removing The "powered By Prestashop" From Mail Templates


Recommended Posts

Hi,

many people face the tedious task of removing the "Powered by Prestashop" from every mail template in their shops.

 

One obvious possibility is to go to the backoffice -> Localization -> Translations, and select "Email template translation" and the name of your theme.

 

Very soon you will face the reality, around 64 mail templates in html and plain text, and a serial killer interface. Not what you would like to do if you want to have a life ;-)

 

Using the replace functionality from your IDE won't do the work either. Works fine for text files but in html you have to remove three lines

 

<tr>
<td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center"><a style="color: {color}; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> powered by <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop™</a></td>
</tr>

 

and many text editors / IDEs would have problems to do it with all your files at a time... at least my experience with NetBeans in Linux.

 

What I did:

 

Use the "Replace" function from the IDE (in my case Netbeans) for the text files. It is just one line. Still might require some iterations since the famous text comes in different flavours.

 

For HTML I used the following regular expression to match the three lines above:

 

<tr>\n.*PrestaShop.*\n</tr>

 

And use the Netbeans ability to use regular expresions to find and replace in multiple files. Alternatively you could also use "sed" if you are using a Unix based system.

  • Like 3
Link to comment
Share on other sites

Hi,

many people face the tedious task of removing the "Powered by Prestashop" from every mail template in their shops.

 

One obvious possibility is to go to the backoffice -> Localization -> Translations, and select "Email template translation" and the name of your theme.

 

Very soon you will face the reality, around 64 mail templates in html and plain text, and a serial killer interface. Not what you would like to do if you want to have a life ;-)

 

Using the replace functionality from your IDE won't do the work either. Works fine for text files but in html you have to remove three lines

 

<tr>
<td style="font-size: 10px; border-top: 1px solid #D9DADE;" align="center"><a style="color: {color}; font-weight: bold; text-decoration: none;" href="{shop_url}">{shop_name}</a> powered by <a style="text-decoration: none; color: #374953;" href="http://www.prestashop.com/">PrestaShop™</a></td>
</tr>

 

and many text editors / IDEs would have problems to do it with all your files at a time... at least my experience with NetBeans in Linux.

 

What I did:

 

Use the "Replace" function from the IDE (in my case Netbeans) for the text files. It is just one line. Still might require some iterations since the famous text comes in different flavours.

 

For HTML I used the following regular expression to match the three lines above:

 

<tr>\n.*PrestaShop.*\n</tr>

 

And use the Netbeans ability to use regular expresions to find and replace in multiple files. Alternatively you could also use "sed" if you are using a Unix based system.

 

 

many thanks for sharing your know-how, I am convicted that your solution will help

 

im using phpdesigner, and your solution works like a charm :)

Link to comment
Share on other sites

  • 11 months later...

many thanks for sharing your know-how, I am convicted that your solution will help

 

im using phpdesigner, and your solution works like a charm :)

 

if you allow and agree with "powered by prestashop" removing fix, you could evaluate the possibility of remove at all the next module release?its a huge work edit 60 files.. :) maybe the powered by prestashop could be somewhere else

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

  • 5 months later...
  • 2 weeks later...
  • 10 months later...

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