VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: saviB on May 15, 2013, 16:06:23 PM

Title: Add Product Image (thumbnail) to Ask a Question Email, mail_html_question.php
Post by: saviB on May 15, 2013, 16:06:23 PM
Can someone provide me the proper code to add an image to the Ask a Question About This Product email? I've tried:

<img src="<?php echo JURI::root().JRequest::getVar('link'); ?>" />

in: mail_html_question.php

But it returns a missing image.
Title: Re: Add Product Image (thumbnail) to Ask a Question Email, mail_html_question.php
Post by: saviB on May 23, 2013, 18:17:40 PM
Anyone?
Title: Re: Add Product Image (thumbnail) to Ask a Question Email, mail_html_question.php
Post by: servlet on May 26, 2013, 14:31:19 PM
Look here: http://forum.virtuemart.net/index.php?topic=98468.msg368654#msg368654
Title: Re: Add Product Image (thumbnail) to Ask a Question Email, mail_html_question.php
Post by: saviB on June 04, 2013, 14:10:58 PM
Thanks - I followed those instructions and still get a missing image in the about this product email. The post you presented is from 2012 - has something changed in the latest version that would cause the problem?
Title: Re: Add Product Image (thumbnail) to Ask a Question Email, mail_html_question.php
Post by: servlet on June 04, 2013, 17:33:19 PM
It work good. I tested it

Quote from: Coolson on November 15, 2012, 03:42:48 AM
<input type="hidden" name="link" value="<?php echo $this->product->images[0]->file_url_thumb;  ?>" />    in the file: form.php (in others input hidden)

<img src="<?php echo JURI::root().JRequest::getVar('link'); ?>" /> in the file: mail_html_question.php

its all