News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Display multiple category images

Started by Piszi, May 20, 2014, 16:53:30 PM

Previous topic - Next topic

Piszi

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.

hopinn