VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jorgej28 on November 13, 2018, 21:27:32 PM

Title: Images of products in confirmation mail
Post by: jorgej28 on November 13, 2018, 21:27:32 PM
Hello everyone, is there any way that the confirmation email for the client to take the images of the products you are asking ?, Where you can modify or what pluging should I use, thank you very much.
Title: Re: Images of products in confirmation mail
Post by: GJC Web Design on November 13, 2018, 22:53:08 PM
over ride  to your template \html\com_virtuemart\invoice\mail_html_pricelist.php

and in the product loop do something like

            $product = $model->getProductSingle($item->virtuemart_product_id,false);
            $model->addImages($product);
            $image = $product->images[0];
and display with

<span class="img-thumbnail"><?php echo $image->displayMediaThumb ('', FALSE, '', TRUE, FALSE, TRUE, 80, 80); ?></span>

there might be a better way