cleaner Posted March 15, 2014 Share Posted March 15, 2014 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: https://raw.github.com/PrestaShop/PrestaShop-1.5/master/modules/sendtoafriend/sendtoafriend-extra.tpl Link to comment Share on other sites More sharing options...
dioniz Posted March 15, 2014 Share Posted March 15, 2014 (edited) 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 March 15, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
cleaner Posted March 15, 2014 Author Share Posted March 15, 2014 Thanks Dioniz Well... i have bad habbit to mess the code I did as you adviced, but somehow no envelope icon yet. Clear Smarty, Force compilation done also Link to comment Share on other sites More sharing options...
dioniz Posted March 15, 2014 Share Posted March 15, 2014 Are you sure that is your old code? That's not original theme right? Link to comment Share on other sites More sharing options...
cleaner Posted March 15, 2014 Author Share Posted March 15, 2014 You assumed right: i have purchaced theme. Original code for this module did not work at all. New code works perfectly. Link to comment Share on other sites More sharing options...
dioniz Posted March 15, 2014 Share Posted March 15, 2014 Is it possible to see your site? 1 Link to comment Share on other sites More sharing options...
cleaner Posted March 15, 2014 Author Share Posted March 15, 2014 just PM you Link to comment Share on other sites More sharing options...
cleaner Posted March 16, 2014 Author Share Posted March 16, 2014 (edited) 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 March 16, 2014 by cleaner (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now