Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Showing title graphic on when description is available


Guest

Recommended Posts

Hi there,

 

Please can anyone tell me if it's possible for me to show a title graphic only when a description is present, and have it not shown when there is no description there? The graphic a simple thing that represents 'Overview' in graphic form that I just hard coded into the product_info.php.

 

Maybe somebody well up on PHP can tell me how I could put an 'if' statement there so that it only shows up if I've put a description for the product there in the first place?

 

Thanks in advance!

 

Adam

Link to comment
Share on other sites

Try something like this

 

<?php

   if (tep_not_null($product_info['products_description'])) {

?>

your html code here



<?php

   }

?>

 

Regards

Wayne Wetterhahn

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...