Jump to content

Send to friend module - envelope icon is missing


Recommended Posts

Hi,

 

I had a problem with send to friend module (PS 1.5.5.0.) I got an error "you did not fill reguired fields" and module did not send any mails.

 

Today i finally got module working with Github's code, but now noticed small envelope icon is missing next to text "send to a friend".

 

I see this envelope icon is in the original code, but somehow not in Github's code. Any advice how to edit / add that part of the code?

 

Original part of code: 

<li class="sendtofriend">

<a id="send_friend_button" href="#send_friend_form"><i class="icon-envelope"></i>{l s='Send to a friend' mod='sendtoafriend'}</a>
</li>
 
Github's code:
<li class="sendtofriend">
<a id="send_friend_button" href="#send_friend_form">{l s='Send to a friend' mod='sendtoafriend'}</a>
</li>
 
Should somebody else have same problem, whole code is available from this link:

 

Link to comment
Share on other sites

Why don't you just replace

<a id="send_friend_button" href="#send_friend_form">{l s='Send to a friend' mod='sendtoafriend'}</a>

with this

<a id="send_friend_button" href="#send_friend_form"><i class="icon-envelope"></i>{l s='Send to a friend' mod='sendtoafriend'}</a>
Edited by dioniz (see edit history)
Link to comment
Share on other sites

Hi,

 

Should somebody else have problem with "send to a friend" module with PS 1.5.5.0 ( error "you did not fill required fields", please download fixed version of "sendtoafriend-extra.tpl" from here:

 

https://raw.github.com/PrestaShop/PrestaShop-1.5/master/modules/sendtoafriend/sendtoafriend-extra.tpl

 

Please note small envelope-icon is missing from this version. You can fix this with following code which was edited to me by user Dioniz:

 

" in sendtoafriend-extra.tpl in your template change this line: "

 

<a id="send_friend_button" href="#send_friend_form">{l s='Send to a friend' mod='sendtoafriend'}</a>

 

to

 

<a id="send_friend_button" href="#send_friend_form"><i class="icon-envelope"></i>{l s='Send to a friend' mod='sendtoafriend'}</a>

 

Thank you Dioniz for your help!

 

-cleaner

Edited by cleaner (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...