VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: RedCat2005 on August 15, 2013, 14:49:36 PM

Title: additional images
Post by: RedCat2005 on August 15, 2013, 14:49:36 PM
Hello everyone,

Maybe it's already asked by someone. I have made an category override in the html folder from my template. I am customizing the default.php file. But i was wondering how can i get all the additional image thumbnails from products on a product overview page from a certain category? I only want the file names with path to appear from the resized folder.
I cannot find these it in the db table #__virtuemart_medias. Only the file path from the original file.

Maybe it is really simple.

Thank you

Title: Re: additional images
Post by: jjk on August 15, 2013, 15:55:52 PM
Quote from: RedCat2005 on August 15, 2013, 14:49:36 PM
Maybe it's already asked by someone.
As far as I can remember, nobody else had this somewhat strange idea yet :-)
I think if you do that, the layout of the category browse page will often look a little bit disorganized.
Each additional image file is stored in the _virtuemart_medias table, just like the primary image. The additional images are linked to the primary image in the _virtuemart_product_medias table.
Title: Re: additional images
Post by: Maxim Pishnyak on August 15, 2013, 19:00:16 PM
Quote from: RedCat2005 on August 15, 2013, 14:49:36 PM
i was wondering how can i get all the additional image thumbnails from products on a product overview page from a certain category? ...
'from' or 'for'?

There's already solution on forum for this.
Title: Re: additional images
Post by: RedCat2005 on August 16, 2013, 13:14:52 PM
Thank you for your answers. Maybe it is a strange request in the way i posted it.
I will be more specific of my intentions. I need the additional images to create an image slide when someone hovers over an article/product.
I can query the additonal 'original' images from the _virtuemart_medias table with the _virtuemart_product_medias table. But i want the resized versions.

Basically i want to know. Where does VM store the info of the resized images?
Title: Re: additional images
Post by: jjk on August 16, 2013, 14:45:28 PM
Quote from: RedCat2005 on August 16, 2013, 13:14:52 PM
Basically i want to know. Where does VM store the info of the resized images?
The thumbnails are created once only and stored in your 'resized' folder. If you didn't change the image folders/paths, they should be in ...\images\stories\virtuemart\product\resized
Title: Re: additional images
Post by: Maxim Pishnyak on August 16, 2013, 20:24:40 PM
Quote from: Maxim Pishnyak on August 15, 2013, 19:00:16 PM
There's already solution on forum for this.
Probably I need to say in plain words, that using forum search button could help.