Tooonyg Posted July 22, 2010 Posted July 22, 2010 Hey I'm trying to add a Infobox to my Oscommerce website. Kind of like Information on www.want2sell2u.net in the top right. Is there anyway i can copy the Information code, and convert it do a shipping on for a example and have it set up so i can just type a few sentence. <?php /* $Id: information.php,v 1.6 2002/11/22 18:56:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<ul class="information"> <li class="bg_list_un"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>' . '<li class="bg_list"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>' . '<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></li>' . '<li class="bg_list"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>' . '</ul>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Possible to edit that rename it but it in the includes/boxes folder and then add it to my left or right column? thanks, Tony
Tooonyg Posted July 22, 2010 Author Posted July 22, 2010 I tired doing something like <?php /* $Id: information.php,v 1.6 2002/11/22 18:56:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => Shipping); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => Then tried putting the Text HERE); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> Cant get it to work thought maybe you can do it some way along those lines
germ Posted July 22, 2010 Posted July 22, 2010 <?php /* $Id: information.php,v 1.6 2002/11/22 18:56:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => 'Shipping'); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => 'Then tried putting the Text HERE'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> That works. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Tooonyg Posted July 22, 2010 Author Posted July 22, 2010 LOL, i been messing with that for hours trying to get that to work after installing infobox admin too. Thank you!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.