Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add a new box?


Party

Recommended Posts

Hi All

 

Sorry to ask a newbie Question. but i like to add a New box in the right column.

But i just can't get it right.

I want the box to show that it is posible to pay with creditcard so i want a box with the picture of a Fx. Visacard. Mastercard. and other.

 

1. I have created a file called creditcard.php and putt it in to /incluedes/boxes/

 

2. I have add this: require(DIR_WS_BOXES . 'creditcard.php'); to the column_right.php

 

I think i am mising something but what? Please help....

 

The creditcard.php looks like this.:

 

<?php

 

?>

<!-- creditcard //-->

<tr>

<td>

<?php

$info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false);

 

<img src="http://www.sparkasse.de/pics/Logos/visacard.jpg" />

 

 

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- creditcard_eof //-->

Link to comment
Share on other sites

<?php

?>
<!-- creditcard //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_CREDITCARD);

new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' => '<img src="http://www.sparkasse.de/pics/Logos/visacard.jpg" />');




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

 

this should work. One thing, don't link images from another site, host them on your site!!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...