Author Topic: How to show Thumbnails in invoice_items.php ?  (Read 335 times)

djanael

  • Beginner
  • *
  • Posts: 22
  • Consultant Joomla! and Virtuemart
    • Aureo - Consultor Joomla e Virtuemart
  • Skype Name: aureo.silva.hernandes
  • VirtueMart Version: 3.0.9.4
How to show Thumbnails in invoice_items.php ?
« on: May 04, 2019, 15:39:45 pm »
How to make this?
Staff Virtuemartbrasil.com.br

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8948
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: How to show Thumbnails in invoice_items.php ?
« Reply #1 on: May 04, 2019, 19:59:59 pm »
in the loop something like


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

then

<span class="img-thumbnail"><?php echo $image->displayMediaThumb ('', FALSE, '', TRUE, FALSE, TRUE, 80, 80);  ?></span>
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation