Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unexplainable broken image


phil81uk

Recommended Posts

well 1st

u can disable showing of broken images in admin

2nd

how did u get to that page is there a link to it from your store

Checkout my osc contrib here!

You can also checkout the site im working on by clicking the card button!

Link to comment
Share on other sites

thats how all the stores are

and its not a problem

in the adress bar where it says

 

http://www.dragonsandgoths.co.uk/shop/inde...nufacturers_id=

 

after the equal sign put the manufacturer's id

 

since the way u have ur store setup and ur products u dont have any manufacturers well i dont think if u had some their picture would display there

 

u can see it on my store

 

http://dollward.com/catalog/index.php?manufacturers_id=

 

no picture right?

 

and after u put the manufacturer id there

 

http://dollward.com/catalog/index.php?manufacturers_id=12

Checkout my osc contrib here!

You can also checkout the site im working on by clicking the card button!

Link to comment
Share on other sites

If manufacturer's id is empty the name of the image is empty too.

That's why you'll see broken image.

Here is another easy way to fix your problem. Edit your index.php file and go to line where you'll see code:

$image = tep_db_fetch_array($image);

 

(it's usually somewhere between lines 270 - 280 ;) )

 

After this line add following code:

$image = $image['manufacturers_image'];

if ($image == "") { $image = 'notavailable.gif'; }

 

What this code does? Well, if the value of $image is empty, this code replaces it with the other (usually default ) image. I'm using "notavailable.gif" as a default image in our site, but of course you can use what ever image you want.

Here is an example: http://www.peliarkku.fi/catalog/index.php?cPath=22_106

There is no image for this category so we' use default image.

(This site is only in Finnish, but if you'll click categories, you'll see how we use default image).

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...