Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a new infobox to a column & also getting rid of a dropdown box.


Invado

Recommended Posts

How can I do the following:

 

Add a new box to my right column that will inform people where we ship to?

 

Edit the Currency box so that it is no longer a drop down box. We only accept one currency so there is no need for a drop down box (with only one item in it) How can I change that to just text explaining what currency we accept?

 

Thanks.

Link to comment
Share on other sites

Save the text below as /catalog/includes/boxes/shipping_info.php:

<?php

/*

$Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- shipping info //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => 'We Ship to');

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

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

'text' => '<!--Insert your text here-->');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- shipping info_eof //-->

 

Edit the part that says <!--Insert your text here-->.

 

Now open up /catalog/includes/column_right.php and insert:

require(DIR_WS_BOXES . 'shipping_info.php');

 

It doesn't seem like you would need an infobox explaining your currency. You could remove it. While you have the column_right.php open, you could comment out the following line:

//include(DIR_WS_BOXES . 'currencies.php');

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Link to comment
Share on other sites

Save the text below as /catalog/includes/boxes/shipping_info.php:

Edit the part that says <!--Insert your text here-->.

 

Now open up /catalog/includes/column_right.php and insert:

It doesn't seem like you would need an infobox explaining your currency. You could remove it. While you have the column_right.php open, you could comment out the following line:

 

 

Thank you kindly...excellent answer...right to the point.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...