Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

image enlarge link


joekilo

Recommended Posts

can anyone give me any advice on this..i will be selling t shirts and sweatshirts on site...but just want the design image showing on site until someone clicks to enlarge then i would like it t appear on top of a blank t image so customer can see what it would look like on the T? ive seen it on lots of sites just dont know how

jk

Link to comment
Share on other sites

It sounds like you could use this quick mod that I just recently did. It allows you to specify a separate image for your pop-up. Here's the original post:

 

Re: Enlarge Image problems

Author: Richard Lyman

Date: 04-13-02 18:24

 

i haven't done the 'big image' mod myself. what i did do as an 'interium' fix for myself. (simply because i'm trying to keep up with snapshots, and the cvs doesn't have big image yet, (i'm not using cvs <G>, i do database change checks by hand, and overlay the snapshots, i've put a configure.php in catalog/includes/local for most of the stuff i need, and do minimal patchwork to the remainder (which this would be).

 

create directory

catalog/big_images

make sure permissions are correct

i suggest copying your existing catalog/images dir contents to catalog/big_images directory

add

define('DIR_WS_BIG_IMAGES', 'big_images/');

to catalog/includes/local/configure.php

 

mod

catalog/popup_image.php

change

<?php echo tep_image(DIR_WS_IMAGES . $products_

to

<?php echo tep_image(DIR_WS_BIG_IMAGES . $products_

 

P.S. Be sure to set the folder permissions of your big_images to execute for all otherwise your pop-up will be blank...I learned the hard way :?

Link to comment
Share on other sites

cheers... the image size isnt the problem they pop up on enlarge ok...i just want he picture to appear on a t shirt template which i can do in a graphics program but i would like this second image to be the one that appears when some clicks the enlarge photo....?

jk

Link to comment
Share on other sites

that's exactly what that mod will do. You just make that second image with the tshirt your big image. Just make sure it is the exact same file name and extension as the regular image.

Link to comment
Share on other sites

eventhough the original posting listed catalog/includes/local/configure.php it'll probably be catalog/includes/configure.php

Good luck!

Link to comment
Share on other sites

hi i have one more queire regarding the above, once i make the changes will i have to have a second image in place for every item...? if say im selling something else thats not a T shirt can that still show as it is now?

cheers for help

jk

Link to comment
Share on other sites

You'll need a second image for every item since the enlarge view will be calling for an image in the big_images folder. You can just copy the image from your /images folder into your /big_images folder if you want the same image to show in the pop-up. I recommend creating your images in the exact size that you set in the admin variables so that they are not resized by the browser...it makes them blurry. Even if you use the same image in the pop-up as your product display, I would still create a new image that is bigger in size.

Link to comment
Share on other sites

  • 2 weeks later...

hi again.....i have followed the instructions we talked about and set up my big images directory....now they are coming out same size as before...you mention resizing and keeping same file name...how would i do this as when i try give same name it asks me if i want to overwrite file with same do i just create in different folder ?

jk

Link to comment
Share on other sites

You will have 2 folders in your catalog directory... /images and /big_images. In your /images folder you will have a file like picture1.jpg with dimensions 100x50 (or whatever you have set in admin) and in /big_images you will have a file named picture1.jpg but it will be a different image(graphic on the shirt) with dimensions 400x100(or whatever you want). If it's asking you if you want to overwrite existing file, then it seems you are not saving it to the proper folder. Keep me posted.

Link to comment
Share on other sites

hello, still trying to get this one on...i have followed instruction and created a seperate folder to resize images to upload to big_images i did one with on a t shirt...but back in the shop the initial image still comes up so iguess it isnt calling the big_image? i have done what was said (i added the define big_ image mod to configure.php under the line with define images... why not working any idea?

jk

Link to comment
Share on other sites

So when you click to enlarge the image on your site, it pops up the same image that is displayed on the product page? What's your website address?

Link to comment
Share on other sites

ignore that last one.... i dont know why but cat/ pop up either wasnt uploaded properly or i uploaded to different location ill have to check....but it worked this time so thanks for all the advice and im sure ill have more questions on subject

jk

Link to comment
Share on other sites

As long as the pop-up images are showing up, then the permissions are ok. I just set the folder permissions not the individual images.

Link to comment
Share on other sites

another ps...the images are now poping up they look a bit blurred...i have set the size the same as the variables in sub catagory images in admin as same size is this right...any reason why blurered im using jpegs at minute but same was with gifs i think

jk

Link to comment
Share on other sites

Since the pop-ups do not have a size variable in admin, they will appear in the exact size that you saved them in. Take a look at the image outside of the pop-up and see how it looks (ex. www.yoursite.com/catalog/big_images/picture1.jpg)

If you give me your url I can take a look at it.

Link to comment
Share on other sites

ok i must be changing the wrong thing then what is the subcatorgory images? my url is www.joekilo.com ive only done three ..."screaming hands" is the one coming up blurry maybe its the way the picture has been taken. its not that bad im just making sure ive got the right setting everywhere....cheers for help

jk

Link to comment
Share on other sites

Yeah the blurryness of the picture is the way it was taken/saved. Looks to me like you've got the mod working fine now. You may want to try and get a better picture of it but I wouldn't worry about it too much. Good luck!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...