Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product listing


FWR Media

Recommended Posts

if there are no alt tags for multiple images, that effectively means its not valid code does it not?

 

anybody have a fix for this or is it impossible?

 

what other plugins are there similar to KissIT thumbnailer?

 

You would have to fix the osCommerce bxGallery it has nothing to do with KissIT.

Link to comment
Share on other sites

Hi Robert,

 

Just want to say thanks for this great addon.

 

Lyn

 

Well .. thank you .. don't often get that :)

Link to comment
Share on other sites

Excellent stuff Robert,

 

This is by far the easiest to install contribution for thumbnails, and it works very well. I would recommend anyone to install this.

 

It is also one of the most needed contributions for oscommerce.

 

Best regards,

 

Ian

Link to comment
Share on other sites

Hi Robert,

 

Thanks for this addon, it really help with the image size display as well.

 

I had modify the product_info.php

 

The original Samsung Galaxy,

main product tab on top, and four small one at the bottom and when you mouse over it change to that image,

and when you click on it, it bring up bigger size picture.

http://demo.oscommerce.com/product_info.php?products_id=28

 

Somehow after install few addons, the image doesn't do same job anymore.

I also install product zoomer, which works fine with only one picture.

 

If I had more then one picture, the first one will be covered and the zoom fucntion will disappear.

 

Since you are expert in oscommerce and also have knowledge about the image, do you mind to take little time to read my product_info.php code and give me advises.

 

If you are free and happy to help, I will send PM to you.

If you are busy, it is ok.

 

Once again, thank you very much.

 

Lyn

Link to comment
Share on other sites

An issue I have run into is when adding images in admin, it appears that you can only display either the thumbnail or the large image in a product. Is the large image supposed to "overwrite" the thumbnail image? Sorry so dense:)

Link to comment
Share on other sites

@@pvoce

 

You upload an image of "any size" ( ideally of a decent dimension matching your choice of smaller image dimensions )

 

Then in the script the image is displayed using the osCommerce tep_image() wrapper.

 

When the tep_image() wrapper is used in the script it passes in width and height.

 

KissIT looks at this info and produces an image/thumbnail exactly to the dimensions passed in.

 

tep_image() example ( from index.php product listings ): -

 

tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)

 

This translates to: -

 

tep_image( 'images/my_product_image.jpg', 'product_name', 100, 80)

 

Now presuming that the image is larger than width 100 height 80, KissMT will resize the image to those dimensions and display it.

 

Hope that helps.

Link to comment
Share on other sites

RWF: To an extent. When adding an image to a product, I am to upload a larger one to the thumbnail, which I do. However, the image is displayed within the product as full sized, not shrunken. Am I missing something?

Link to comment
Share on other sites

Am I missing something?

 

In the install instructions, there's a separate page with instructions on how to handle the product image on the product page. Make sure you did that part.

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Link to comment
Share on other sites

In the install instructions, there's a separate page with instructions on how to handle the product image on the product page. Make sure you did that part.

 

Found it. I made the changes here on the localhost, but the configure.php didn't make the ftp upload for some reason. I'm blaming the lack of coffee. Works like a charm now. Thank both of ya'll for your time and patience.

Link to comment
Share on other sites

Hi, I've tested on my test shop and it works fine and quite fast, however I've noticed that thumbnails and images in admin are not resized in correct proportions, Did I make a mistake or do I need to change something in settings. Also, the transparent gifs are not being changed correctly, it seems that they may have lost their transparency, but it could also be the problem of the original gif...?

Absinthe Original Liquor Store

Link to comment
Share on other sites

Hi, I've tested on my test shop and it works fine and quite fast, however I've noticed that thumbnails and images in admin are not resized in correct proportions, Did I make a mistake or do I need to change something in settings. Also, the transparent gifs are not being changed correctly, it seems that they may have lost their transparency, but it could also be the problem of the original gif...?

 

Images are resized correctly, the system though has to create an exact size of image because you have stipulated an exact size for the <img tag. If you upload images that can't be scaled to the correct size then they will be placed within a white background of the correct size.

 

There is no support for transparencies as most usage is for non transparent.

Edited by FWR Media
Link to comment
Share on other sites

  • 2 weeks later...

Hi Robert,

 

I kept recieve this error message when I edit the product images, what should I do to fix it?

 

Many thanks in advance.

 

 

Lyn

 

 

Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146

 

 

	  return imagepng ( $this->_image, $save_in, $quality, $filters );

Link to comment
Share on other sites

Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 146

 

Good catch Lyn

 

catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php

 

Find ( line 144 )

 

 

	  $quality = is_null ( $quality ) ? 0 : $quality;

 

Change to ...

 

	  $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 );

Link to comment
Share on other sites

Good catch Lyn

 

catalog/includes/modules/kiss_image_thumbnailer/classes/Image.php

 

Find ( line 144 )

 

 

	  $quality = is_null ( $quality ) ? 0 : $quality;

 

Change to ...

 

	  $quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 );

 

Hi Robert,

 

It's me again. I am trying to install the jQZoom,

test it and it didn't work so I put the original product_info.php back

 

However the picture quality of the product list became really bad now.

 

Also I started to receive the same error message again.

 

Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 149

Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in /includes/modules/kiss_image_thumbnailer/classes/Image.php on line 149

 

 

I had change the code as you suggested

 

$quality = is_null ( $quality ) ? 7 : floor ( $quality / 10 );

 

Can you pleaes help? I can PM you my site if you need to have a look.

 

Thanks

 

Lyn

Link to comment
Share on other sites

@@ce7

 

Well my correction wasn't quite right but unless you have set quality in html_output.php to 100 then it isn't the problem.

 

I'll give a better solution anyway: -

 

Find ( line 144 )

 

 

 

	 $quality = is_null ( $quality ) ? 0 : $quality;

 

Change to:-

 

		  $quality = !is_numeric ( $quality ) ? 7 : floor ( $quality / 10 );
	  if ( $quality < 0 ) {
	    $quality = 0;
	  } elseif ( $quality > 9 ) {
	    $quality = 9;  
	  }

 

Now as to your problem, please empty the thumbs directory so it can rebuild the thumbs.

Link to comment
Share on other sites

@@FWR Media

 

Really helpful contribution Rob, I have just one problem- It doesn't seem to create thumbnails for category pages, I use the product listing grid thumbnail view add-on and it shows browser resized images instead of the ones generated by this add-on. But if I switch to list view then the images are the correct ones generated from your addon.

On other pages like homepage it's fine.

 

Any ideas why it doesn't show the generated images only on grid view in categories?

Edited by al3ks

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

@@FWR Media

Any ideas why it doesn't show the generated images only on grid view in categories?

 

Yup http://addons.oscommerce.com/info/8495

 

Read please note: at the bottom.

 

Example: -

 

tep_image(DIR_WS_IMAGES . $image, $products['products_name'], PRODUCT_IMAGE_WIDTH, '')

 

Obviously bad code as it doesn't supply the tep_href_link() wrapper with a height.

Edited by FWR Media
Link to comment
Share on other sites

Ok, I've changed the

PRODUCT_IMAGE_WIDTH,

to

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT

and it works. Thanks for the great addon.

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

@@vampirehunter

 

Javascript off has no effect as KissIT makes no use of javascript. ( not that it matters as no shoppers who actually expect to buy anything will have javascript off ).

 

There are no known issues currently ( although I will be looking at transparencies in the future ). Other than those already mentioned in this support thread: -

 

See: http://www.oscommerce.com/forums/topic/388022-kissit-image-thumnailer/page__view__findpost__p__1646044

Edited by FWR Media
Link to comment
Share on other sites

@@newburns

 

I can't see an example.

 

But .. KissIT does what you tell it to do .. you put in a width and height into tep_image and that is the size it will create.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...