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

Product image too big on product details page

Started by ipo, February 01, 2012, 23:25:54 PM

Previous topic - Next topic

Gruz

This is for VM 2.0.2
Extract the attached file to your templates. My code changes are marked with ##my so you can compare it with original VM templates.


[attachment cleanup by admin]
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

kaleske

now everithing are working, thank you for this. But i have more questions.
First it is possible to make pop-up image hide when press outside the poped window.
Second is it possible to make right and left buttons not to auto-hide.
Sorry for my english, because i`m from lithuania and i`m don`t speging english very well. I`m using joomla 2.5 and VM 2.0.2

kyteasdale

Quote from: Gruz on February 26, 2012, 00:07:17 AM
This is for VM 2.0.2
Extract the attached file to your templates. My code changes are marked with ##my so you can compare it with original VM templates.

Thanks for the help on this - I'm afraid I'm a complete dunce when it comes to the code aspect - I'm using J!2.5.1 and VM 2.0.2 - so should I just copy the default.php file you provided into templates/YOURTEMPLATE/html/com_virtuemart/productdetails/  ?

Or am I just getting confused - thanks again :)

Gruz

Quote from: kaleske on February 26, 2012, 09:24:24 AM
now everithing are working, thank you for this. But i have more questions.
First it is possible to make pop-up image hide when press outside the poped window.
Second is it possible to make right and left buttons not to auto-hide.
Sorry for my english, because i`m from lithuania and i`m don`t speging english very well. I`m using joomla 2.5 and VM 2.0.2

I will work on it one day. The JS script, which handles the popup, is far from being ideal. I will post when I finish.


Quote from: kyteasdale on February 26, 2012, 12:52:58 PM
Quote from: Gruz on February 26, 2012, 00:07:17 AM
This is for VM 2.0.2
Extract the attached file to your template

Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

comraseliteunit

hi.. i am using virtuemart 2.0.2 and joomla 2.5.1 on a clean installation.. i have the same problem like most of them, product image too big on product details page.. and i have solved the issue by following the GRUZ solution.. the only problem is, how do i make the image of the product as such:-

http://forum.virtuemart.net/index.php?action=dlattach;topic=97365.0;attach=46725;image

i need to make my images as the above image in that link, to make it big and fixed in that position.. i dont want to adjust the thumbnail size because i am using that size for my other product related stuff.. please give me solution, what file to edit.. thank you so much!

Gruz

Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

comraseliteunit

i mean, how do i make the size of picture normal.. check the attachment..



[attachment cleanup by admin]

Gruz

By now upload the full size image adjusted to the size you need and don't change displayMediaFull to displayMediaThumb



Currently VM doesn't have a way to create thumbnails of a custom size. I have ideas how to do this, but no time to implement.
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

incavoid

I have a problem ... i haven't this code in my file O.o why ???

<?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"',false,"class='modal'",true); ?>
</div>
<?php // Product Main Image END ?>

<?php // Showing The Additional Images
// if(!empty($this->product->images) && count($this->product->images)>1) {
if(!empty($this->product->images) ) { ?>

<div class="additional-images">
<?php // List all Images
if(count($this->product->images) >0){
foreach ($this->product->images as $image) {
echo '<div class="floatleft">'.$image->displayMediaThumb('class="product-image"',true,'class="modal"',true,true).'</div>'//'class="modal"'

Gruz

#39
I do apologize, magnetic storm doesn't allow to use telepathy today.

Could you please share what VM versions you use and what file you are looking at?

Have a look here also: http://forum.virtuemart.net/index.php?topic=97365.msg325332#msg325332
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

incavoid

sorry!!!  ::)

i use virtuemart 2.0.2  on joomla 1.5.25

i see this file ---> components/com_virtuemart/views/productdetails/tmpl/default.php

ty and again sorry

Quote from: Gruz on March 05, 2012, 23:11:40 PM
I do apologize, magnetic storm doesn't allow to use telepathy today.

Could you please share what VM versions you use and what file you are looking at?

Have a look here also: http://forum.virtuemart.net/index.php?topic=97365.msg325332#msg325332

Gruz

In VM 2.0.2 images section is separated in the default_images.php file.
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

incavoid

i downloaded the package www_template_images ... now is all ok very nice work !!

GG ty again for support

Quote from: Gruz on March 05, 2012, 23:22:21 PM
In VM 2.0.2 images section is separated in the default_images.php file.

YooHappy

Quote from: Gruz on February 26, 2012, 00:07:17 AM
This is for VM 2.0.2
Extract the attached file to your templates. My code changes are marked with ##my so you can compare it with original VM templates.


I want to thank you very much. I have spend many hours to search the problem. I saw this post, and I just uploaded the package on my template : it's work!!
Thank you again.

haidamaka

Hi! Nice Solution. But how to fix to show the product title but not the file name under image in lightbox?