Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Image


bdh

Recommended Posts

The admin has absolutely nothing to do with the popup image size.

 

The way it works now you set the thumb size in the admin and the popup is the actual size of the image. As an example, if your products pics are 200x200 then set it for 100x100 (or whatever) in the admin and it'll automatically resize the thumb to 100x100 (not the most efficient method).

 

There are several image contributions that let you use two different size pics - one for the thumb and another for the popup.

Link to comment
Share on other sites

Sorry, my mistake. I remembered there being small & med pic size there & though there was large too. I don't pay too much attention to that since I have them all blank & upload the pic at the size I want it.

Link to comment
Share on other sites

FYI

 

I just updated the contribution for Sm,Med and Lg Picture and retrofitted it to vanilla snapshot dated 2003/05/14.

 

I added a little error checking, as well, so that if you add a product and only give it one image in the small image field, it will copy that image filename to the medium and large. If you give it small and medium and not large, it will copy the medium filename to the large filename.

 

In Admin section, I hard set my height and width for small and medium and then make sure the image files I create for them are saved with those dimensions, so the system won't have to resize them. For the large, I leave the Admin section for large image height and width blank, so the pop-up window will use whatever the file is saved with. Then I just make sure that I don't create/save a large image that is larger than some monitors being used by customers out there. So I keep my large image less than 600x400 to play safe.

 

Hope that helps someone.

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

Fatal error: Cannot instantiate non-existent class: upload in /public_html/commerce/admin/categories.php on line 524

 

Just installed the small medium large image mod. Works well in the store itself, but when I try to edit product it gives me above error. (When clicking the preview)

(Even when I try to change just description and do nothing with the images)

 

Dont have the snapshot dated for that date, and would like to patch it somehow...

Any suggestions?

Link to comment
Share on other sites

The small, med, large image mod has a few code errors, but nothing that can't be ironed out.

 

There is a different mod that just has two images: thumbnail and big image, and this one drops into both 2.2CVS (old) and MS1 (new) without any fuss at all.

 

HTH

Link to comment
Share on other sites

Hey pixniw69;

 

What osCommerce version are you using?

What is the date at the top of your categories.php file?

I have been editing and adding products in my shop for the past two days with the contribution, but I don't have any other contributions applied to my shop either....yet.

 

Are there any other contributions you've applied that touch that module?

 

Let me know.

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

pixniw69;

 

Sorry, I forgot to ask in the last reply....what is the code in your version that is around that line number you referenced???

 

Thanks,

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

DOnt know what happened to my previous post... I must have clicked preview only.

 

Anyhow, I had older 2.2 MS1 version, and dl'd latest snapshot.

 

Looking for image mod.... thumb, reg and large images/ multiple images... which one is good.

 

I see so many links to same mod, different version by different people... so confusing.

 

Should have only 1 file with all the updates in same thread.

 

Thx any suggestions.

Link to comment
Share on other sites

the retarded thing is.. that they have not included like gd functions. if you right click on the thumbnail, you will see that it is the same file size as the original image even if the original is 600x600px so it still has to load a 600x600px image as a 100x100px image, that slows it down. also, being popups for the larger image view, anyone that has a popup blocker will have to disable it just to view larger image.

 

 

I wonder how hard it would be to add gd to oscommerce? I would rather resample an image with truecolor and slice that file size.

Link to comment
Share on other sites

Hi Burt,

 

What I'm looking for is a small and large image mode but I can't find them under the image contribution.

 

Could you tell me the URL?

 

The small, med, large image mod has a few code errors, but nothing that can't be ironed out.  

 

There is a different mod that just has two images: thumbnail and big image, and this one drops into both 2.2CVS (old) and MS1 (new) without any fuss at all.  

 

HTH

Link to comment
Share on other sites

If you downloaded and installed the latest snapshot (dated 2003/05/14 May 14th or later), then you should be able to use my version of the contribution for Sm,Med,Lg Pics that is out there. My version contains all the needed files for a full install of the contribution. Most of the work in the files is from the original author of the contribution. I just retrofitted some of the code into newer versions of files, so that I wouldn't lose some fixes that the core team had done.

 

So the short of it is....if your tep_snapshot_ file is 20030514 or higher, then everything you need is in the latest version of Sm,Med,Lg Pics. Just download it to your PC, unzip it on your hard drive and look at the README file. It will expain everything.

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

Thanks hankfrid.

I am using last year's snapshot. Wanted to update but I've been advice it will be very hard to update as I am running multi-ligual site and it may mack up. So looks like no option for me then.

 

:....(

 

AG

Link to comment
Share on other sites

Yes, the contributions can be found by clicking on community and then "Contributions" on the left side.

 

The contribution that I updated for a recent snapshot is named Sm,Med,Lg Images and has multiple versions, the most recent being the one I updated for snapshot 20030514.

 

There are also other contributions out there dealing with multiple product pictures per product. One is named Mo Pics. There are others, as well. Just browse thru them and decide which one seems to suit your release and needs.

 

I normally look for the more recent contributions, because I am working with a snapshot from 5/14, so many of the newer contributions can easily be applied to my version without any problems.

 

Remember, no matter what contribution/version you chose.....BACK UP both your site and catalog before applying anything!!!!! Can't stress that enough, especially if you already have a functioning shop that you just want to enhance.

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...