VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: null13 on June 24, 2016, 05:15:14 AM

Title: How to input product image into invoice
Post by: null13 on June 24, 2016, 05:15:14 AM
Hi all,

Help me please , i want to know how to input product image into invoice.

thank you so much.
Title: Re: How to input product image into invoice
Post by: jenkinhill on June 24, 2016, 10:49:24 AM
See http://bfy.tw/6QjZ
Title: Re: How to input product image into invoice
Post by: null13 on July 05, 2016, 06:59:52 AM
Now i can add product image on invoice .

Add in line 105 befor

                       <td align="center">
            <?php echo $item->order_item_sku; ?>
         </td>


I use this code

<?php
         if (!empty($item->product_quantity)) {

             $db = JFactory::getDBO();
             $qs = "select file_url
               from cathtest_virtuemart_medias
               where virtuemart_media_id ='34'"; //print_r($qs);
         $db->setQuery($qs);
         $item2 = $db->loadAssocList();
         foreach($item2 as $file_thumb){
            //echo $file_thumb['file_url_thumb'];
             ?>
             <img src="<?php  echo JURI::root () . $file_thumb['file_url_thumb'] ?>" />
             <?php
             }
          }

        ?>   

add in invoice_item.php