Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a picture to a box content?


Gonzogoose

Recommended Posts

Posted

Hey all,

 

The documentation tells how to add an image to the box headers, but not to the box itself, which is what I'm needing to do. But it's not a product image, but rather an image I uploaded. How would I go about doing that?

 

Thanks!

Posted

Let's use the information box as an example. After the last part of the coding before you see ?> You place your html coding to specify where your picture is located like this:

<img src="yourpicture.gif"><br><img src="nextpicture.gif">

Posted

Thanks, but I've tried that and this is what I get:

 

Parse error: parse error, unexpected '<' in /home/content/b/r/a/bracy/html/catalog/includes/boxes/payment_methods.php on line 26

  • 4 months later...
Posted

This is what worked for me to add a centered graphic that is not hot linked:

 

 <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => 'Box Heading Name');

 new infoBoxHeading($info_box_contents, false, false);

 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'center',
							 'text' => tep_image(DIR_WS_IMAGES . 'image.gif'));

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>

  • 6 months later...
Posted

Nevermind I figured it out

 

<!-- metals box //-->

 

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => 'Current Metals');

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => tep_image( 'http://kitconet.com/images/quotes_special.gif'));

new infoBox($info_box_contents);

?>

</td>

</tr>

 

<!-- information_eof //-->

Archived

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

×
×
  • Create New...