News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Images of products in confirmation mail

Started by jorgej28, November 13, 2018, 21:27:32 PM

Previous topic - Next topic

jorgej28

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.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation