PDA

View Full Version : osCommerce site - inserting images



Dragonsi
01-13-2004, 04:41 PM
Hi all,

While I am fairly ok with HTML, I have very little experiance of PHP. I have an 'osCommerce' based shopping site and I am trying to insert some images in the main 'define TEXT_MAIN' area. So far, everything I have tried is just bringing up the blank image table but I'm pritty sure I'm using the wrong code. This is what I tried:


define('TEXT_MAIN', '<big>You may pay via ../images/paypal_logo.gif or Cheque/Postal Order ....blar blar blar...

Can someone please tell me the correct way of inserting images into this main text field?

PS - I have already uploaded the image to the correct directory.

paulhiles
01-13-2004, 06:09 PM
Can someone please tell me the correct way of inserting images into this main text field?

PS - I have already uploaded the image to the correct directory.
Hi Dragonsi,

A couple of things... could you supply a link for the site? and have you tried entering the absolute URL to the image?

Paul

Dragonsi
01-13-2004, 06:40 PM
Hi Paul,

When I tried 'img src' yesterday nothing worked, I tried it again just now and the images have appeared... bizarre..

The site ( www.pembdirectory.co.uk/mall/catalog ) now displays the images I want. Next is to get some images at the bottom of the left column... mmmmm ...

I think that is something about tep_image (WS_IMAGES) or something...? What doc holds this code, I still have to figure out.. :-/

attitudenz
01-13-2004, 09:21 PM
hey,

tep_image is a function in
/includes/functions/html_output.php

you will need to make changes to column_left.php - note there is a table tag before the column - anything you add to column_left.php should be in a table row.

regards,
Geoff

Dragonsi
01-14-2004, 11:24 AM
Cheers Geoff,

I'll play around later when I have a bit more time.

Another question would be:
How to display product images with the product list when you click on the category link (retailers for me) - at present, only product name and price are displayed, it would be nice to display image thumbnail also. Can anyone let me know how to do this?

attitudenz
01-19-2004, 02:36 AM
Go to admin -> configuration -> product listing

On this screen you can turn on the ability to display images when products are listed for category browsing or searches.

Dragonsi
01-19-2004, 02:30 PM
Ta very much - that's sorted it.. :)