Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

different images for product listing page


edmond1815

Recommended Posts

Posted

Hello friends,

I have a dilema...

 

I want to use a image for a product and upload via admin page, normal way.

That image is with a background, same colour like site backgorund to look ok, for me.

But in product listing page, where i have all product for that subcategory, the background is white and i want to use in this "prodcut listing" page a

different image.

 

I can't find a solution for that, i tried to create another folder instead "images", let's say images_listing.

But i can't find where should i change the path to use that different images.

Basically, in product info, the path is DIR_WS_IMAGE, means /images

In product listing i want to use /images_listing folder, to have other product picture, then default path /images.

 

Please some help.

 

Edmond

Posted

In product_listing chage all instances of DIR_WS_IMAGES to DIR_WS_IMAGES2

 

At the top of product_listing make a statement like:

 

  define('DIR_WS_IMAGES2', 'images_listing folder/');

just after the osC copyright notice.

 

BACKUP THE FILE BEFORE YOU MAKE ANY CHANGES

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thank you Germ, about your indications.

I need you to be more specific.

In what .php page is product listing? Is not in index.php.

 

To be more clear, maybe i understood wrong.

 

Product listing is main page, with "whats new in month"? Or where is that page with that random products, on first page?

 

I want to do that correction with DIR_WS_IMAGES2 in two places.

 

Actually i want to upload a image by product, and show it in product info page. That's default way.

But in main page where are what's new in that month, that random products, to be another image, of course with same name,

but located in DIR_WS_IMAGES2.

 

Second change is in subcategory product where i have a table with all product in that subcategory. DIR_WS_IMAGES3

Manufacture, image (that product image), name, price, and buy now.

 

Actually i need 3 images folders.

First for default (product image)

Second for product listing (or whats new in that month)

Third for subcategory table view. With all products in that category.

 

This is very important for the layout of my store.

 

I think i was...clear enough :)

 

Please tell me exact where should i modify, to see that DIR_IMAGES_FOLDER, and modify.

 

 

Edmond

Posted

Dear Germ,

 

Works great!

 

It took me few days, to understend exactly how simply was.

 

Thank you very much for your help!

 

 

 

Edmond

 

 

 

In product_listing chage all instances of DIR_WS_IMAGES to DIR_WS_IMAGES2

 

At the top of product_listing make a statement like:

 

  define('DIR_WS_IMAGES2', 'images_listing folder/');

just after the osC copyright notice.

 

BACKUP THE FILE BEFORE YOU MAKE ANY CHANGES

Archived

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

×
×
  • Create New...