tacproinc Posted February 10, 2009 Share Posted February 10, 2009 Hello all, Right now I am trying to figure out how to change the layout of my oscommerce site from 2 to 3 columns. Right now it has a smaller left column and a wider right column. And I would like a add a 3rd column on the right side just a little smaller than the left column. I am not sure how to go about this because, I have been looking at the "column_left" and "column_right" php files. to see if maybe i could figure out the architecture of the system. Can anyone direct me in my development? Thanks in advance. Link to comment Share on other sites More sharing options...
spooks Posted February 10, 2009 Share Posted February 10, 2009 To add an extra column wold mean editing every file in the root, perhaps easier to modify column right so it splits into two columns? Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
tacproinc Posted February 10, 2009 Author Share Posted February 10, 2009 To add an extra column wold mean editing every file in the root, perhaps easier to modify column right so it splits into two columns? Yeh that's a great idea actually. Below is the code for the column-right. <?php /* $Id: column_right.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'currencies.php'); require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } 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 . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> Here is the left column. <?php /* $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'currencies.php'); require(DIR_WS_BOXES . 'shopping_cart.php'); if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories_dhtml.php'); } /* if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } */ require(DIR_WS_BOXES . 'specials.php'); require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'information.php'); ?> How would I go about changing the structure to incorporate a 3rd column? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.