Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hiding image and anlarge link on product_info if "no_image.gif"


Micke

Recommended Posts

Posted

Hi All!

 

Some of the products in my catalog don't have images.

So I'm using a "no_image.gif"-file.

(PDF data sheet maker will go nuts if you don't upload an empty gif or something.)

 

Looks kind of stupid on product_info.php though... "Click to enlarge this empty white square"

 

There must be some simple and smart "if/else"-thing to apply to the table that contains the image and the link. What's the trick?

 

//Micke

Posted
Hi All!

 

Some of the products in my catalog don't have images.

So I'm using a "no_image.gif"-file.

(PDF data sheet maker will go nuts if you don't upload an empty gif or something.)

 

Looks kind of stupid on product_info.php though... "Click to enlarge this empty white square"

 

There must be some simple and smart "if/else"-thing to apply to the table that contains the image and the link. What's the trick?

 

//Micke

Can't you just in admin say image required "false" ?

(I'm not familiar with pdf datasheet maker)

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted

You can shut down images in all the generated PDF's - but I don't want that...

It's this line in product_info.php i want to fix:

<?php
if (tep_not_null($product_info['products_image'])) {
?>

... to include images by the name of "no_image.gif" too.

I think it's more tricky to tangle with the pdf generator...

Posted

Tried to change the code in product_info.php to:

if ($product_info['products_image']) != 'no_image_product.gif' || (tep_not_null($product_info['products_image']))

generates: Parse error: syntax error, unexpected T_IS_NOT_EQUAL in /home/a/server/www/catalog/product_info.php on line 231

Wish I knew PHP...

Archived

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

×
×
  • Create New...