VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Piszi on May 20, 2014, 16:53:30 PM

Title: Display multiple category images
Post by: Piszi on May 20, 2014, 16:53:30 PM
Hello,

I'm trying display more than one image for a category but VM doesn't seem to support it.
Now I'm wondering is there any way to this whitin VM or do I have to code it for myself?
Actually I tried to do it myself but I couldn't figure it out.
When I dump the $category->images object in the default.php it only has one element the main image.
But if I dump the $category object than under the virtuemart_media_id I see the id's for all image for example
[virtuemart_media_id] => Array
        (
            [0] => 802 //main image
            [1] => 803 //secondary image
        )

But I don't know how to get images by media id
Can maybe someone point me to the right direction?

thanks.
Title: Re: Display multiple category images
Post by: hopinn on October 04, 2016, 15:29:35 PM
I'm very curios too :)