pantera28 Posted July 9, 2010 Posted July 9, 2010 Created a new box and I simply want an image in the box. Here's what I have now: <?php /* $Id: cards_accepted.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CARDS_ACCEPTED); new infoBoxHeadingCSS($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' =>' . tep_image(DIR_WS_IMAGES . '../oscommerce2/catalog/images/credit_card_logos.jpg') . '); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> It's not working... if any one can help that would be great.
web-project Posted July 9, 2010 Posted July 9, 2010 $info_box_contents[] = array('text' =>' . tep_image(DIR_WS_IMAGES . '../oscommerce2/catalog/images/credit_card_logos.jpg') . '); are you sure that the above path is correct? Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
pantera28 Posted July 9, 2010 Author Posted July 9, 2010 I'm pretty sure. the image in the oscommerce2/catalog/images/credit_card_logos.jpg . The above code actually deletes other intems from the page as well as if it's not proper PHP code. Can you tell me if this is the proper syntax?
♥kymation Posted July 9, 2010 Posted July 9, 2010 Try this: $info_box_contents[] = array('text' => tep_image(DIR_WS_IMAGES . 'credit_card_logos.jpg')); Regards Jim See my profile for a list of my addons and ways to get support.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.