Jump to content

Recommended Posts

Good day,

 

I am having an issue regarding email sending in prestashop 1.5.4

 

when I set my email parameters to PHP mail() function, order confirmation for customers works fine, but sending a product link to a friend does not work,

 

and if I set the email parameters to set my Own SMTP, sending product link to a friends works, but no order confirmation email is sent to customer. when a customer place order

 

please anyone knows how to make order confirmation email, and sending product link to a friend , can make it work together.

Link to comment
Share on other sites

I'm not an expert but i remember I fixed my issue of not "sending to a friend" by doing this:

 

In modules/sendtoafriend/sendtoafriend-extra.tpl

replace line 48

 

 

data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: unescape(JSON.stringify(datas).replace(/u/g, '%u'))},{/literal}{literal}

 

 

 

 

with

 

 

data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: JSON.stringify(datas)},{/literal}{literal}

 

 

then Disable cache and Force Compile.

Link to comment
Share on other sites

×
×
  • Create New...