Developer forum

Forum » Ecommerce - Standard features » Send to friend link

Send to friend link

Dmitrij Jazel
Reply

Hello DW guys,

I have a question here, let's say I have yet another product in a product catalog.

And when someone overviews the product (Product.html) in eCom templates is used - what I must do to add a "send to friend" email link about this product.

What I am able:

I can add a email link with content text and get the email where to send etc...

What I cannot:

I cannot add a link to a product inside the email.

All I can include in the email is plain text, and if I try including link - it comes as <a href="... <--@EcomProductAdd etc.... /> and that is not ok.

 

Is there an easyer/correct way to add a "send to friend" link in the product catalog?

 

//Dmitrij

 


Replies

 
Marco Johannesen
Reply

Not sure it's the best soloution, but you could use the Formmailer.

You just create an template, send it the product info(link) and the "to" mail adress and then let it do the rest?

 
Dmitrij Jazel
Reply

Hej Marco,

Well that can sound as opportunity, but how would you include a product link inside email text?

Thanks for help,

Dmitrij

 
Marco Johannesen
Reply

There is a pretty good documentation document inside the Formmailer folder in "Templates/Formmailer"...

But basicly you create a "form" on the products page, send the product link and mail adress to the Formmailer template, where you can use it however you want.


<form action="/Admin/Public/FormMailer.aspx" method="post">
<input type="hidden" name="FM_Charset" value="iso-8859-1">
<input type="hidden" name="FM_html" value="true">
<input type="hidden" name="FM_Subject" value="Sitename + Productname">
<input type="hidden" name="FM_FromEmail" value="Site mail">
<input type="hidden" name="FM_FromName" value="Site name">
<input type="hidden" name="FM_Template" value="SendProduct2Friend.html">
<input type="hidden" name="ProductLink" value="ProductLinkFromEcom">


<table>
<tr><td>Mail: </td><td><input type="Text" name="FM_ToEmail" value=""></td></tr>
<tr><td></td><td><input type="submit" value="Send product to friend!"></td></tr>
</table>
</form>
 
Dmitrij Jazel
Reply

Hej Marco,

And thanks alot for help again!

I see that you are using standard formmailer...

But I was wondering if you might have a live example (if you have).

For some reason this one is not working :-/ I did set "from email" to normal email. and template to Mail.html as this one is standard, but nothing is happening, page just refreshes and all the tricks I tried they are not working :-/

Any suggestions?

 

You must be logged in to post in the forum