Author Topic: Product image too big on product details page  (Read 39925 times)

Gruz

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
Re: Product image too big on product details page
« Reply #30 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.


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

kaleske

  • Beginner
  • *
  • Posts: 9
Re: Product image too big on product details page
« Reply #31 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

kyteasdale

  • Beginner
  • *
  • Posts: 16
Re: Product image too big on product details page
« Reply #32 on: February 26, 2012, 12:52:58 pm »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
Re: Product image too big on product details page
« Reply #33 on: February 26, 2012, 19:30:48 pm »
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.


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

  • Beginner
  • *
  • Posts: 3
Re: Product image too big on product details page
« Reply #34 on: March 02, 2012, 18:34:47 pm »
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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
Re: Product image too big on product details page
« Reply #35 on: March 02, 2012, 20:21:37 pm »
I've not got the task.
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

comraseliteunit

  • Beginner
  • *
  • Posts: 3
Re: Product image too big on product details page
« Reply #36 on: March 03, 2012, 03:06:15 am »
i mean, how do i make the size of picture normal.. check the attachment..



[attachment cleanup by admin]

Gruz

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
Re: Product image too big on product details page
« Reply #37 on: March 03, 2012, 08:11:56 am »
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

  • Beginner
  • *
  • Posts: 3
Re: Product image too big on product details page
« Reply #38 on: March 05, 2012, 23:08:34 pm »
I have a problem ... i haven't this code in my file O.o why ???

Code: [Select]
<?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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
Re: Product image too big on product details page
« Reply #39 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
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html

incavoid

  • Beginner
  • *
  • Posts: 3
Re: Product image too big on product details page
« Reply #40 on: March 05, 2012, 23:18:51 pm »
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

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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
Re: Product image too big on product details page
« Reply #41 on: March 05, 2012, 23:22:21 pm »
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

  • Beginner
  • *
  • Posts: 3
Re: Product image too big on product details page
« Reply #42 on: March 05, 2012, 23:24:55 pm »
i downloaded the package www_template_images ... now is all ok very nice work !!

GG ty again for support

In VM 2.0.2 images section is separated in the default_images.php file.

YooHappy

  • Beginner
  • *
  • Posts: 3
Re: Product image too big on product details page
« Reply #43 on: March 07, 2012, 08:20:01 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

  • Beginner
  • *
  • Posts: 5
Re: Product image too big on product details page
« Reply #44 on: April 07, 2012, 14:53:27 pm »
Hi! Nice Solution. But how to fix to show the product title but not the file name under image in lightbox?