Jump to content

[AMELIORATION MODULE SENDTOAFRIEND] Nouvelle version : Module Sendtomyfriend v1.2


P-ter

Recommended Posts

Hello.

My name is Philipp. I'm from Russia.

Not good english.

I have load your module to my shop. But It not work! Not send link to friend (

Module write error - "An error occurred during the sent process to friend:"

Prestashop ver. 1.4.9.0

 

Please help.

 

Best regards,

Philipp.

Link to comment
Share on other sites

  • 5 weeks later...

Hello,Philipp

I had the same error message and I solved it in this way:

I created folder with name of current website language containing templates for email:

0:/yoursite.com/www/modules/sendtomyfriend/mails/

If you have russian, there should be folder 0:/vashoptovik.com/www/modules/sendtomyfriend/mails/ru

 

If this does not help you, check if email is adjusted correctly in whole prestashop or your hosting.

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

  • 1 month later...

Hi friends,

 

I downloaded and installed this module (v. 1.4.1) to my PrestaShop (v 1.5.1.0) at http://donitabio.com

(site is in Bulgarian and in Catalog mode). Module works just fine and thank you for producing it.

I translated most of the fields in Bulgarian (bg) and could give you the translation if you need it.

 

There is just one small issue witth the html template email. There is a tag {image_link} to display product's image but it generates a wrong image's address.

Image's address in the email I receive is something like:

<img src="http://donitabio.comhttp://donitabio.com/156-.........>

You can see that the domain URL is doubled. Can you please advise me if how to fix this.

 

 

(at the same time i also use {shop_logo} which returns the correct logo URL and shop image loads OK)

 

Thanks,

Nick

Link to comment
Share on other sites

  • 5 weeks later...

If you are using other language then English in your store. and the email is shown without the link

 

Just copy and paste send_to_a_friend.html from the "en" folder to your other languagers

 

P.S don't forget to change the text message in that file to fit your other language

Link to comment
Share on other sites

That's right. That is exactly what I did and got that error. I copied send_to_my_friend.html from "fr" folder to "bg" folder and modified it accordingly to display corresponding messages in Bulgarian. Everything works just fine except for the the product image.

 

The line doing this is:

<a href="{product_link}"><img src="{image_link}" alt="{image_legend}" />

 

Product link is OK, but the {image_link} strangely produces a wrong link to the product image's location:

 

 

<img src="http://donitabio.com/10055-159-something.jpg"'>http://donitabio.comhttp://donitabio.com/10055-159-something.jpg" alt="" />

The correct link should be:

 

<img src="http://donitabio.com/10055-159-something.jpg" alt="" />

 

As you can see the master URL is doubled and that is the problem I do not know of how to fix.

 

(I've removed the product image from the send_to_my_friend.html's code as the site is live. I would put it back whenever I find a solution to the above problem.)

Link to comment
Share on other sites

Hi Nick,

 

Send me please or paste here the code for sendtoafriend.html

 

got me to go over it and find you a solution.

 

I am using the old version and its look like the code ignores ""{image_link}"

 

send the code or link to the module for me to fix it for you

Link to comment
Share on other sites

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Message from {shop_name}</title>
</head>
<body>
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
 <tr>
  <td align="left">
   <a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
  </td>
 </tr>
 <tr><td> </td></tr>
 <tr>
  <td align="left">Hi <strong style="color:#DB3484;">{name}</strong>,</td>
 </tr>
 <tr><td> </td></tr>
 <tr>
  <td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">{customer} ({mail}) has sent you a link to a product that (s)he thinks may interest you.</td>
 </tr>
 <tr>
  <td align="left">
   {customer} wished you leave a message for this product :
   <p>{message}</p>
  </td>
 </tr>
 <tr><td> </td></tr>
 <tr>
  <td align="left">
   Click here to view this item: <a href="{product_link}">{product}</a>
  </td>
 </tr>
 <tr>
  <td align="left">
   <a href="{product_link}"><img src="{image_link}" alt="{image_legend}" /></a>
  </td>
 </tr>
 <tr>
  <td align="left">
   Description : {product_description}
  </td>
 </tr> 
 <tr><td> </td></tr>
 <tr>
  <td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
   <a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered with <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
  </td>
 </tr>
</table>
</body>
</html>

That's the English version of the file but the Bulgarian one has just the texts translated. Hope this is enough for you to get it sorted.

Thanks for the effort=

:)

Link to comment
Share on other sites

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Message from {shop_name}</title>
</head>
<body>
<table style="font-family:Verdana,sans-serif; font-size:11px; color:#374953; width: 550px;">
 <tr>
  <td align="left">
<a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a>
  </td>
 </tr>
 <tr><td> </td></tr>
 <tr>
  <td align="left">Hi <strong style="color:#DB3484;">{name}</strong>,</td>
 </tr>
 <tr><td> </td></tr>
 <tr>
  <td align="left" style="background-color:#DB3484; color:#FFF; font-size: 12px; font-weight:bold; padding: 0.5em 1em;">{customer} ({mail}) has sent you a link to a product that (s)he thinks may interest you.</td>
 </tr>
 <tr>
  <td align="left">
{customer} wished you leave a message for this product :
<p>{message}</p>
  </td>
 </tr>
 <tr><td> </td></tr>
 <tr>
  <td align="left">
Click here to view this item: <a href="{product_link}">{product}</a>
  </td>
 </tr>
 <tr>
  <td align="left">
<a href="{product_link}"><img src="{image_link}" alt="{image_legend}" /></a>
  </td>
 </tr>
 <tr>
  <td align="left">
Description : {product_description}
  </td>
 </tr>
 <tr><td> </td></tr>
 <tr>
  <td align="center" style="font-size:10px; border-top: 1px solid #D9DADE;">
<a href="{shop_url}" style="color:#DB3484; font-weight:bold; text-decoration:none;">{shop_name}</a> powered with <a href="http://www.prestashop.com/" style="text-decoration:none; color:#374953;">PrestaShop™</a>
  </td>
 </tr>
</table>
</body>
</html>

That's the English version of the file but the Bulgarian one has just the texts translated. Hope this is enough for you to get it sorted.

Thanks for the effort=

:)

 

 

Hi,

 

this module had many changes along the way. There is a correlation with the other files on how to read {image_link} and the location of the root.

 

do me a favor. upload the module zip here for me to make changes in rest of the file. and I will upload it fixed for you and others to enjoy. P.S What version of presta are you running currently?

Link to comment
Share on other sites

OK Nick

 

The bad news is that the zip had to be fixed a lot, and the file you edited in Bulgarian language had problem within the code.

The GOOD NEWS - I fixed the module, I worked on the Hebrew language, and just copied it to the rest of the languages.

Once you open it, just edit the send_to_my_friend.html that is located in mail folder within the module.

 

Rest of you guys can enjoy working module Ver 1.5.X

 

on my next post I will upload the NEW 1,5 Ver for this module

Link to comment
Share on other sites

Well zwaissmen,

 

You've done an excellent job. I uploaded your version and of course translated send_to_my_friend.html in Bulgarian. It just works fine now.

 

Thanks a lot for the support. I'll upload and post a link here to your module with BG translation in it.

 

Nick

Link to comment
Share on other sites

  • 2 weeks later...

hello, I have 1.4.9 prestashop, I have installed the last version for 1.4 and 1.5, it works ok, but when I recieve mail, I cannot see the pic. its there small square white color and inside its written Ipod (the name product), but I dont see the pic. if I click there Im going to the product to the website, its ok. the problem that no pic. what can I do? thank you very much

Link to comment
Share on other sites

  • 3 months later...

bonjour, j'ai installé la version 1.4.1 sur prestashop 1.4.9.0 et dans la fiche produit j'ai ce message en lieu et place du lien envoyer à un ami

 

Aucun gabarit trouvé pour le module sendtomyfriend

 

merci pour votre aide

Link to comment
Share on other sites

bonjour, j'ai installé la version 1.4.1 sur prestashop 1.4.9.0 et dans la fiche produit j'ai ce message en lieu et place du lien envoyer à un ami

 

Aucun gabarit trouvé pour le module sendtomyfriend

 

merci pour votre aide

 

je me répond tout seul car l'erreur venait de moi, du fait que certains fichiers n'étaient pas présent sur le FTP.

 

par contre le lien image du produit ne fonctionne pas et lorsque je regarde les sources du mail reçu je vois que l'url du site est doublé dans la variable {image_link}.

 

dans le fichier send_to_my_friend.html

<a href="{product_link}"><img src="{image_link}" alt="{image_legend}" /></a>

 

dans la source du mail:

<a href="http://www.monsite.com/categorie/produit.html"><img src="http://www.monsite.c...www.monsite.com/categorie/produit.jpg" alt="produit" /></a>

 

merci

Link to comment
Share on other sites

  • 2 weeks later...

Bonjour, est-ce que ce module est compatible avec la version de prestashop 1.5.4.1 ?

 

Merci

 

Bon, j'ai essayé le module , il fonctionne bien sur la version 1.5.4.1 de prestashop, par contre l'image du produit, n'est pas présente quand j'envoie un mail, je ne sais pas si c'est normal, si il y a un paramètre à changer quelque part ...

 

Si quelqu'un pourrai me renseigner.

 

Merci

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

  • 3 weeks later...

Bonjour,

 

je confirme, l'image du produit dans le mail envoyé n'est pas bonne, il y a juste un carré bleu dans lequel on peu voir un autre carré noir avec une croix blanche à l'intérieur, dommage car ce module est parfait!

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 3 weeks later...

Bonjour à tous,

Je vient d'installer ce module qui est super, merci pour ce partage,

 

Juste un détail, je ne connait rien en prog mais il me semble qu'il manque des simples quotes dans le code de l'indien au niveau de l'id image, j'espère ne pas dire de bêtise :wub:

 

$img_link = Product::getCover((int)(Tools::getValue('id_product')));
  if($img_link>0){$img_link = $link->getImageLink($product->link_rewrite, $img_link[id_image], 'large');}

 

$img_link = Product::getCover((int)(Tools::getValue('id_product')));
  if($img_link>0){$img_link = $link->getImageLink($product->link_rewrite, $img_link['id_image'], 'large');}

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

I want to use this module twice on my page (with different default text).

I tried to copy the module, but it not wotks for me.

I renamed the folder, and the files to sendtomyfriend2, and after that the database table name, and some other things.

But when I click the link it's not working.

Can somebody hellp to me? Please attach a modified zip file, what I can use next to the original module.

Thanks

Link to comment
Share on other sites

Bonjour,

 

Je suis sous prestashop 1.5, et ce module fonctionne : Download link.

 

Par contre, il reste un problème car celui-ci affiche les erreurs suivant  en haut et bas de la page : 

- Function displayHeader() is deprecated

displayFooter() is deprecated

 

Une personne peut-il apporter son aide pour corriger ces 2 erreurs ?

 

 

Merci @ tous.

 

Link to comment
Share on other sites

Thank You :)

Manged to get this working using the latest download version on Prestashop 1.56 with a few modifications (mostly stripping out code, it wasn't recognising email inputs) anyway you can see it working at UnclaspMe.com I've called it "drop a hint" and added a  couple of extra field and resized  the modal box so it looks OK on a mobile in portrait use...

Link to comment
Share on other sites

  • 3 weeks later...

Depuis le passage à PS 1.5.6.1 le module fonctionne. Par contre, je souhaiterai en améliorer la présentation (dans l'esprit du module natif de prestashop). Les données étant liéées à la feuille de style global.css, comment faire pour lui assigner une feuille css séparée ?

 

Merci !

Link to comment
Share on other sites

  • 2 months later...

Bonjour j'utilise le module en test sur une prestashop V1.5.6.2...

 

Cela fonctionne pour le mail mais la photo produit ne s'affiche pas dans le mail ... car dans le mail l'url domaine est inscrite deux fois :

<span style="text-decoration:none;text-underline:none"><img id="_x0000_i1026" src="http://prestashop.bretweb.comhttp:/prestashop.bretweb.com/img/p/2/5/0/250-medium.jpg" border="0"></span>
 

si cela peut aider ...

serait il possible d'utiliser Jquery de prestashop au lieu de shadow box ?

merci

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

  • 3 weeks later...

Bonjour,

 

Module sendtomyfriend V1.4.1

PS V1.5.4

http://www.courtepointeclaire.ca/prestashop

 

Tout fonctionne sauf que l'image du produit n'apparait pas dans la page générée par le module pour la saisie des données pour générer le e-mail ni dans le e-mail

 

suggestions appréciées

 

____________________________________

21 mars 2014

Voici la ligne en défaut ( autour de la ligne 20 dans sendtomyfriend.tpl

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'medium')}" alt="{$cover.legend}" title="{$cover.legend}" />

 

En la mettant en commentaire, l'image disparait.  

 

sendtomyfriend_img.png

 

 

Je ne sais cependant pas comment corriger cet appel pour que l'image du produit apparaisse correctement.

 

Quelqu'un pour m'éclairer SVP

 

_____________________________________

 

26 mars 2014

 

L'image est maintenant visible en remplacant 

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'medium')}" alt="{$cover.legend}" title="{$cover.legend}" />

 

par 

 

<img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'medium_default')}" alt="{$cover.legend}" title="{$cover.legend}" />

 

dans mon installation.

______________________________________

 

26 mars 2014

 

Pour faire apparaitre l'icône "send to my friend" sur la page produit il faut corriger le fichier sendtomyfriend_product.tpl.

 

remplacer

 

<img src="{$module_template_dir}sendtomyfriend.png" alt="{l s='send' mod='sendtomyfriend'}" />

 

 

<img src="{$module_template_dir}/sendtomyfriend.png" alt="{l s='send' mod='sendtomyfriend'}" />

 

_____________________________________

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

  • 2 months later...

Je suis sous prestashop 1.5, et ce module fonctionne : Download link.

 

Vraiment un excellent module, il possède toutes les fonctions que je cherchais !

 

Félicitations à Joël et Pierre, ainsi qu'à toute la communauté pour le testing, debuggage et portage vers les nouvelles versions.

 

Je viens de l'installer sur un Prestashop 1.5.4.1 et n'ai eu aucune modification à faire, tout marche du premier coup, y compris l'image dans le mail !

 

Chapeau et encore merci !!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...