MrsZippy Posted March 15, 2007 Posted March 15, 2007 I've been trying to add a new info box to column_right. I've created the page payments.php in includes/boxes <?php /* $Id: payments.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- payments //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_PAYMENTS); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PAYMENTS) . '">' . BOX_HEADING_PAYMENTS . '</a><br>' . '<"'tep_href_link(FILENAME_PAYMENTS) . '">' . BOX_PAYMENTS_TEXT . '</a><br>' . '<"'tep_href_link(FILENAME_PAYMENTS) . '">' . BOX_PAYMENTS_IMAGE . '</a><br>' . new infoBox($info_box_contents); ?> </td> </tr> <!-- payments_eof //--> I've also added it to the end of the column_right file if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'currencies.php'); } require(DIR_WS_BOXES . 'payments.php'); ?> I've searched lots of threads and followed different instructions. One of which was to add define('FILENAME_PAYMENTS', 'payments.php'); to the filenames.php to define the file to call but i'm either seeing no change on the column or i'm losing the currency box. Anyone got any ideas where i'm going wrong? All i want to do is create a box with the paypal and credit card logos inside with a bit of text :( Thank You Jo Smile: A curve that can make a million things straight
usernamenone Posted March 16, 2007 Posted March 16, 2007 I found 2 in the contribution section. Just make sure they are compatable with your version. http://www.oscommerce.com/community?contri...amp;category=11
Ausgirl Posted March 16, 2007 Posted March 16, 2007 Or turn a box you may not be using into what you want for example: if you are not using your language box, change the the heading to payments accepted & add image of your paypal/CC image. No code changes easy.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.