VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: webmiep on August 13, 2013, 05:24:54 AM

Title: Recommens email
Post by: webmiep on August 13, 2013, 05:24:54 AM
Hello There,

I saw on the forum the topic for the link in the recommend email (mail_html.php) and the product picture.
The topic was http://forum.virtuemart.net/index.php?topic=110325.0

There was no answer on hw to send a picture in this link.
Can someone help me with some code to do so??

Thanks a lot.
Warm regards Webmiep
Title: Re: Recommens email
Post by: Maxim Pishnyak on August 13, 2013, 12:08:49 PM
Did you try to use html code to add image?
Title: Re: Recommens email
Post by: webmiep on August 13, 2013, 17:02:37 PM
Hello,

Yes I did. But it is more complicate because you want only the picture of the product which is recommended to a friend.
So there should be some dynamic code with it.
I am not that good in php

Thanks for your attention.
warm regards
webmiep
Title: Re: Recommens email
Post by: Maxim Pishnyak on August 13, 2013, 19:45:11 PM
Quote from: webmiep on August 13, 2013, 05:24:54 AM
I saw on the forum the topic for the link in the recommend email (mail_html.php) and the product picture.
Did you dig a bit mentioned by you file? Are you able to find what command prints product name for example?
Title: Re: Recommens email
Post by: webmiep on August 18, 2013, 17:58:53 PM
Hello,

No I am not able to do that Sorry

Kind regards Webmiep
Title: Re: Recommens email
Post by: Maxim Pishnyak on August 19, 2013, 12:00:39 PM
In that file there is a row
<?php echo JText::sprintf('COM_VIRTUEMART_RECOMMEND_MAIL_MSG'$this->product->product_name,   $this->comment); ?>
To understand how to get access to other then name product properties you could study sticked threads about template overrides in Template forum section.

Report here if you would get some difficulties.
Title: Re: Recommens email
Post by: webmiep on August 20, 2013, 16:28:52 PM
Hello,

Thank you I will. do this.

Webmiep