VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: piru on June 05, 2013, 12:07:31 PM

Title: info images, where are they?
Post by: piru on June 05, 2013, 12:07:31 PM
Hello,

I want to understand how it works the images folder.
/images/stories/virtuemart/product/resized are the thumbnails images
/images/stories/virtuemart/product are the popup images
Where are the info (detail) images? or will be resize anywhere?

Thanks!
Title: Re: info images, where are they?
Post by: piru on June 10, 2013, 12:14:40 PM
There is a complicated question? or did no one understand my question?

Thanks!
Title: Re: info images, where are they?
Post by: sagaranvekar on June 11, 2013, 08:55:53 AM
I guess you are talking about product detail page.
(http://demo.virtuemart.net/index.php/2012-01-13-09-33-20/virtuemart-default-layout/mp3-player/ipod-shuffle-detail)
Detail page uses same image from
/images/stories/virtuemart/product
Title: Re: info images, where are they?
Post by: piru on June 11, 2013, 09:06:00 AM
I don´t think so, because /images/stories/virtuemart/product are the popup images, or not? And the popup images there are not the same size from detail images...
If you are right, then where are the popup images?
Title: Re: info images, where are they?
Post by: sagaranvekar on June 13, 2013, 12:38:05 PM
Can you locate me to your website?
Maybe your template has size defined in <img> tag.
Title: Re: info images, where are they?
Post by: piru on June 13, 2013, 12:45:39 PM
http://k-urz.de/v4c  (http://k-urz.de/v4c)
Title: Re: info images, where are they?
Post by: sagaranvekar on June 13, 2013, 15:30:02 PM
Please find image sources in attachment. Both images are same.

[attachment cleanup by admin]
Title: Re: info images, where are they?
Post by: piru on June 13, 2013, 15:34:44 PM
this is what I mean... but I want the popup images bigger. And this is the question, how can I make this
Title: Re: info images, where are they?
Post by: sagaranvekar on June 14, 2013, 14:31:26 PM
Quote from: piru on June 13, 2013, 15:34:44 PM
this is what I mean... but I want the popup images bigger. And this is the question, how can I make this

You cannot do that. Infact you can use thumbnail on the details page instead of showing full image and then clicking on it will show you bigger image. for that you need to do following things.
In \components\com_virtuemart\views\productdetails\tmpl\default_images.php

<div class="main-image prod">



<?php

echo $image->displayMediaFull("",true,"rel='vm-additional-images'");

?>




<div class="clear"></div>

</div>


Change it to

<div class="main-image prod">



<?php

echo $image->displayMediaThumb("",true,"rel='vm-additional-images'");

?>




<div class="clear"></div>

</div>


displayMediaFull shows full image and displayMediaThumb shows thumbnail.

Hope this fixes your issue.
Title: Re: info images, where are they?
Post by: piru on June 17, 2013, 10:11:28 AM
But I don´t want to show thumbnails in the detail page, I only want that the popup image will be bigger.
I will see, maybe I can use your code

Thank you!