Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: 1 ... 9 10 [11] 12 13   Go Down
Print
Author Topic: 2 Product Thumbnail image sizes Mod [finished]  (Read 134678 times)
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #150 on: October 23, 2007, 19:18:42 PM »

You may install the mod, try upgrade from 0.12 to .0.13a. However, since after upgrading to Joomla 1.0.13, you can't go back, you better test it first with a test site.
Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
Moog
Newbie
*
Posts: 26


« Reply #151 on: November 01, 2007, 06:43:07 AM »

Hello. Im getting this error when I click on the Product Images tab.

Fatal error: Call to undefined method ps_product::image_tag1() in F:\wamp\www\joomlateine\administrator\components\com_virtuemart\html\product.product_form.php on line 800

It's in the Thumbnail box.
Also If I remove that 1 I will get same error with tag2 but Then I can see thumbnail2 section. And if I remove also that 2 from the image_tag2 then everything seems good but I don't think thats a right thing to do.

Thanks.
Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #152 on: November 01, 2007, 10:46:09 AM »

Look like you don't have the correct ps_product file.php. Try replacing it from the mod. It's in the classes directory.
Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
Moog
Newbie
*
Posts: 26


« Reply #153 on: November 01, 2007, 12:50:11 PM »

Look like you don't have the correct ps_product file.php. Try replacing it from the mod. It's in the classes directory.

Hi Joseph,

Sorry I don't understand. You mean ps_product_files.php or ps_product.php and "Try replacing it from the mod" ? uh ?

I have edited ps_product.php file by following the tutorial.

**
Also. How can I display the second thumbnail ?

Thanks.
Moog
« Last Edit: November 01, 2007, 12:52:23 PM by Moog » Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #154 on: November 01, 2007, 13:02:52 PM »

The file is ps_product.php. Sorry for the confusion. From your errors, the function ps_product::image_tag1() is not found. So probably you haven't done that change. Actually, I have done the mod and put it as a download. (link of which can be found in my signature) That's why I advise you to replace it from the mod.

The download is here http://www.expertcms.net/public_downloads/hack_virtuemart_thumb2.zip
« Last Edit: November 01, 2007, 13:07:07 PM by Joseph Kwan » Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
Moog
Newbie
*
Posts: 26


« Reply #155 on: November 01, 2007, 14:17:01 PM »

hei!

Works well thanks! I may have 10% from all of the images under the specified sizes. That thumbnail 2 has sizes 500x500 but some images can be 423x470 and it makes those images to 500x500 and images will be really low quality. Is there anyway to keep the max size of the images and just add white spaces to get 500x500 and also center the image.

Thanks !
« Last Edit: November 01, 2007, 14:57:40 PM by Moog » Logged
Moog
Newbie
*
Posts: 26


« Reply #156 on: November 03, 2007, 17:19:34 PM »

Mhh. Does it work only when adding product from admin panel ? Because when I added full image to both 3 (thumb,thumb1 and full image) then it resizes like I have GD on. Displays thumbs with different sizes. I so need to add them by database :/
Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #157 on: November 04, 2007, 00:45:02 AM »

I suppose thumbnails are resized from the full size image. If your thumbnail2 is the same as the full size image, you don't need to use thumbnail 2. Just use the full size image which will not be resized at all.
For the product images, you can use CSV upload or edit them directly in database. What you need is use the same image filename for thumb, thumb1 and full image. Also remember to set dynamic thumbnail resizing on in your VM Configuration/Layout.
« Last Edit: November 04, 2007, 00:48:54 AM by Joseph Kwan » Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
Moog
Newbie
*
Posts: 26


« Reply #158 on: November 04, 2007, 07:56:06 AM »

Thanks for the reply Kwan Smiley

 Umm Ok, mh well When I turn Dynamic on, product images on browse page are full size images. Also When I keep the thumb2 empty in the database it shows No image on product page.

 Is there any possibility to add only full size image and it resizes " on the go" both thumb1 and 2 images to browse and product page without any image quality loss ? And also adds white space to edges if the image is too small to keep the image quality..
 
 Also when I add product via admin panel and then check the image proertise then it has width with no height. When I put full image from database to thumb image and check this products image on my browse page then it shows only height for image. Maybey this is the place where the problem lays or it has to be like this? I hope it doesn't. Smiley

Thanks!
Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #159 on: November 04, 2007, 09:52:15 AM »

You have to enter a value for the thumbs for them to show. For dynamic autho reize, put the same image filename as the full image, ie., if your full image is 123.jpg, put 123.jpg for the thumb and thumb1 too.
The dynamic resizing is exactly what you want.

By the way, your full image should be of a size larger than the thumbs, otherwise, the resized image will not look good. Upsizing is something we need to avoid. If you still have problem, a sample site will help to diagnose your problem.
Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
Moog
Newbie
*
Posts: 26


« Reply #160 on: November 04, 2007, 11:15:00 AM »

I have Sizes already entered. Sample site mh. Okay. I have to upload it though Smiley
Logged
oofman
Newbie
*
Posts: 6


« Reply #161 on: November 08, 2007, 06:09:02 AM »

Hi Joseph, I've updated your downloaded link but now it seems I cant add any images into the joomla admin...it gives me the following error.
Can you help me with this?
Error: The following image update command failed: $ret = copy( "c:\temp\phpDDCD.tmp", "/Data/Hosting/Websites/Domains/think-more.com/wwwroot/components/com_virtuemart/shop_image/product/BOOK2_90x90.jpg" );


I've overwritten my files with yours from the following link: http://www.expertcms.net/public_downloads/hack_virtuemart_thumb2.zip
Logged
oofman
Newbie
*
Posts: 6


« Reply #162 on: November 12, 2007, 03:44:17 AM »

Anyone could help me with this error?   Undecided
Logged
Joseph Kwan
Advanced
Hero Member
*****
Posts: 2115


« Reply #163 on: November 12, 2007, 13:38:22 PM »

Make sure the scrpt has write access to the directory .../shop_image/product
Logged

Pay service to make VM work according to your needs. Your Joomla/VM solutions are just a PM away
Joseph Kwan

VM Themes and Templates explained in detail

Projects contributed:
  Excel Product Upload
  Two Product Thumbs
  Bulk Update of Order Status
and many more.
Moog
Newbie
*
Posts: 26


« Reply #164 on: November 13, 2007, 09:48:23 AM »

Hi again.

 Had some time to work on it.

I found out why it's making some images smaller than anothers. Problem is the sizing of the picture. If I have dynamic Image on it resizes the image so it wont loose the quality and makes it much smaller. For example my requirments are 170x170 but the image is 176x190. Width will be decrease to something 110~ and height will be 170 as required.

If I was following the tutorial, I read something that it should center the image and add extra white area to the sides if the image is smaller. How can I see it working ?

Thanks !
moog Smiley
Logged
Pages: 1 ... 9 10 [11] 12 13   Go Up
Print
Jump to: