View Single Post
  #11  
Old 12-21-2014, 09:29 AM
 
topspin6711 topspin6711 is offline
 

Member
  
Join Date: May 2010
Posts: 22
 

Default Re: Adding Images to the Invoice

Tony, thank you for this. It didn't work as written, I had to make two changes to image.tpl:

Code:
{* vim: set ts=2 sw=2 sts=2 et: *} {** * @ListChild (list="invoice.item", weight="5") *} <th class="item"> <widget class="\XLite\View\Image" image="{item.getImage()}" alt="{item.getName()}" maxWidth="80" maxHeight="80" centerImage="0" /> </th>

First, changed "invoice.items" to "invoice.item".

Figured this out looking at the other items.tpl files /skins/admin/en/order/invoice/parts/items/

Second, seems you have to call the image widget class as you see. I don't really understand this so if you can explain I would appreciate it. Found this looking at another tpl using the getImage function, namely item.image.tpl.

Haven't tested, but I assume everything after the alt tag is optional.
Reply With Quote