Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to enlarge


medalta

Recommended Posts

:huh:

I would like to be able to use larger images for the pop up window, but I don?t know how to go about it. I assume it is done on product_info.php but that is about it.

 

I know I have to adjust the JavaScript to display larger that 50 x 50 but what else?

 

Larry

:(

Link to comment
Share on other sites

I just removed the width/height restrictions (set to blank) and the images where shown in original size.

You could also try to just "blank" one of the options, like width=100 and height=(blank).

 

btw. Your Euro currency needs to be updated :P

Link to comment
Share on other sites

Thanks Jimmy,

I have already done that part with the image values. I should explain better.

 

I want the images on product_info.php to display small 50x50.

IE:

mug_peach.gif = ?width 50? height 50?

 

But when you ?Click to enlarge? I want to reference a larger image say 200x200

IE:

mug_peach_popup.gif = ?width 200? ?height 200?

I am sure this is easy but I am new to php. I have gone over the code and I can?t figure it out. I know I can change the values for the JavaScript from 50 and 50 to whatever but I do not know how to point to the 2 different sizes.

 

Have a look here and you will see what I mean.

novelex example "zoom in"

 

I want to do the same thing for the Medalta Giftshop. As to the Euro $?s I think I am going to take out US and Euro and leave it as Canadian to start with. This shop is not going to be live for a while. I have to figure out how I am going to handle shipping first. It has been poorly handled so far.

 

Thanks

Larry

Link to comment
Share on other sites

OK, so I take it we both talk about the standard images for the products. I checked out novelex' website, and it seems my reply is still valid.

If you go to the admin part of osCommerce and choose My Store setup, you will have the choice of changing the values for small image height and width.

This is how the product image will display, both under News, Product etc.

 

If you want the "zoom" to work standard, you just choose a larger image when adding the products.

I did this myself to test and it works like a charm.

 

I will look into the php code to see if something pops up...

Link to comment
Share on other sites

Actually...the height=50 width=50 in the javascript for the popup, refers to the original size of the popup window...not the dimensions of the image it is referencing.

 

Normally...the way it works is that you upload an image when you add a product to the database. This is your original image, with original dimensions. OSC thumbnails the image automatically and calls it thumb_imagename, and includes that thumbnail (in the size you specify in admin) on the product_info page. When you click the "Click to emlarge" text, it opens a small popup window, calls the original uploaded image (imagename), and then resizes the popup window to 30 pixels larger than the full size image once it has finished loading.

 

If your original image was small, the popup is going to be small also.

 

You don;t actually have to alter any code, or upload separate images to have the popup reference a larger image. The popup calls the original image you uploaded when you added the product. If that image is not big enough...upload a bigger one!

Link to comment
Share on other sites

The novelex example you linked to, apparently is one of your projects.

If you managed to get the popups to work correctly on that site, how come you are having trouble with the other site?

Link to comment
Share on other sites

First Novelex is a project I work on but only as a member of a larger team.

 

On that site I create three images

IE:

image_sm.gif @ 85px X 50px

image_lg.gif  @ 200px X 200px

image_popup.gif at full size 500x500 or whatever

 

from there we use whatever size fits whatever dynamic environment.

 

I will go over the posts here and try out things again. Like I said before this is an easy fix I just don't quite understand yet.

 

Maybe my biggest problem is a fear of messing with php code and I am overlooking the obvious.

 

:blink: it's not like that has never happened before. :blink:

 

plus it is kind of nice having the quality of community support available here. ;) I am not being lazy I just don't want to screw up the work I have done so far. :unsure:

 

thanks peoples

Link to comment
Share on other sites

Normally...the way it works is that you upload an image when you add a product to the database. This is your original image, with original dimensions. OSC thumbnails the image automatically and calls it thumb_imagename, and includes that thumbnail (in the size you specify in admin) on the product_info page. When you click the "Click to emlarge" text, it opens a small popup window, calls the original uploaded image (imagename), and then resizes the popup window to 30 pixels larger than the full size image once it has finished loading.

 

That doesn't happen to the default 2.2 install

After you browse, select an image and add the product the original image is saved directly in the /catalog/images folder, at the size you specify in admin, and under it's original name. No thumb_ is appended ?

Link to comment
Share on other sites

It is trivial to add in more images, there are quite a few contributions that enable you to do exactly that.

 

I have 3 size images on a site:

 

image: 100 x 100 (used in "new products" listings etc)

med_image: 250 x 250 (used in "product_info.php" etc)

large_image: any size, used in popup_image.php

 

However on most sites I run, two sizes of image is sufficient.

 

You need to change some code to do it, but it is relatively easy.

 

hth

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...