VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: iojens on August 12, 2014, 16:49:40 PM

Title: Images in Inventory View
Post by: iojens on August 12, 2014, 16:49:40 PM
Hello,

I want to add images to the backend inventory view (/administrator/components/com_virtuemart/views/inventory). Unless I missed something the $product variable in that view only holds the 'virtuemart_media_id' only and no variable for images exists (e.g. $product->images[0] won't give me anything) similar to the category view. I can query the 'virtuemart_medias' table directly for the 'file_url' variable and it works, but I wonder if there is a more elegant way / if helper methods already exist for such things.


Thank you for any hints

Cheers

Jens