robvr6 Posted November 22, 2007 Posted November 22, 2007 Hi I am working on modifying a layout which can be seen here http://gibsonpixeldev.com/tz/osc1/ and I want to remove the products in the right column and just have images for ads. can this be done? thanks in advance R
FIMBLE Posted November 22, 2007 Posted November 22, 2007 Hi I am working on modifying a layout which can be seen here http://gibsonpixeldev.com/tz/osc1/ and I want to remove the products in the right column and just have images for ads. can this be done? thanks in advance R Yes it can you have to comment out the boxes you do not require. catalog/included/colum_right.php Example below, or if you do not want anything there but non OSC material you can delete the whole lot and add you own. to comment out us // <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_top_categories_box(); } else { include(DIR_WS_BOXES . 'top_categories.php'); } require(DIR_WS_BOXES . 'links.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 . 'information.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'); // instat messenger status require(DIR_WS_BOXES . 'messenger.php'); //if (basename($PHP_SELF) != FILENAME_LOGIN) require(DIR_WS_BOXES . 'login.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'); } //require(DIR_WS_BOXES . 'whats_new.php'); //if ((USE_CACHE == 'true') && empty($SID)) { // echo tep_cache_manufacturers_box(); //} else { //include(DIR_WS_BOXES . 'manufacturers.php'); // } ?> Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
robvr6 Posted November 22, 2007 Author Posted November 22, 2007 So then Can I add the thre imges into that colum that I wan to example below ***IMAGE*** ___Space___ ***IMAGE*** ___Space___ ***IMAGE*** Yes it can you have to comment out the boxes you do not require. catalog/included/colum_right.phpExample below, or if you do not want anything there but non OSC material you can delete the whole lot and add you own. to comment out us // <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_top_categories_box(); } else { include(DIR_WS_BOXES . 'top_categories.php'); } require(DIR_WS_BOXES . 'links.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 . 'information.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'); // instat messenger status require(DIR_WS_BOXES . 'messenger.php'); //if (basename($PHP_SELF) != FILENAME_LOGIN) require(DIR_WS_BOXES . 'login.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'); } //require(DIR_WS_BOXES . 'whats_new.php'); //if ((USE_CACHE == 'true') && empty($SID)) { // echo tep_cache_manufacturers_box(); //} else { //include(DIR_WS_BOXES . 'manufacturers.php'); // } ?>
FIMBLE Posted November 22, 2007 Posted November 22, 2007 So then Can I add the thre imges into that colum that I wan to example below ***IMAGE*** ___Space___ ***IMAGE*** ___Space___ ***IMAGE*** Yes you can, just use the normal HTML to insert. If you are not going to use the boxes, already there delete or comment them form the colum_right.php. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
robvr6 Posted November 22, 2007 Author Posted November 22, 2007 I have ried copying and pasting that code into my colum_right.php but they are still showning for some reason http://gibsonpixeldev.com//tz/osc1/index.php any ideas what I am doing wrong? its the images below the new collections title on the right. thanks R
digilee Posted November 22, 2007 Posted November 22, 2007 Seeing as you are using a template, possibly the box code is in a different place? SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design
FIMBLE Posted November 22, 2007 Posted November 22, 2007 Seeing as you are using a template, possibly the box code is in a different place? No I mean back up the colum_right.php. Then delete the contents on colum_right.php add your HTML Save and up load. Always make sure you have a back up first tho Regards Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
robvr6 Posted November 22, 2007 Author Posted November 22, 2007 Im sorry for eeming so slow but is this the code that I would need to comment parts out of? Thanks for your replies and patience BTW <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ 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 . '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'); } ?>
FIMBLE Posted November 22, 2007 Posted November 22, 2007 Im sorry for eeming so slow but is this the code that I would need to comment parts out of? Thanks for your replies and patience BTW <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ 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 . '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'); } ?> Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted November 22, 2007 Posted November 22, 2007 It depends, what that you currenty have in your right colum do you want to keep there and what do you want removed? Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
robvr6 Posted November 22, 2007 Author Posted November 22, 2007 It depends, what that you currenty have in your right colum do you want to keep there and what do you want removed? well all I want is the tab at the top and then just to be able to add my images Im just stuck as to how I can remove the products that are there. http://gibsonpixeldev.com//tz/osc1/index.php if I could just work out how to remove the products on the right under the new collections image then I will be ok i think obviously my images will probably need to go in a table somehow. Im not sure how the current products are being inserted there not bieng an expert in php. thanks R
robvr6 Posted November 23, 2007 Author Posted November 23, 2007 No I mean back up the colum_right.php.Then delete the contents on colum_right.php add your HTML Save and up load. Always make sure you have a back up first tho Regards Nic also I delete all the content from this file and upoad it the products are still showing on the right hand side
digilee Posted November 23, 2007 Posted November 23, 2007 Normally templates are slightly different to the standard install and things get moved around a bit. I suggest you go back to the person that sold you the template and ask them. SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design
robvr6 Posted November 23, 2007 Author Posted November 23, 2007 Normally templates are slightly different to the standard install and things get moved around a bit.I suggest you go back to the person that sold you the template and ask them. Thanks I'll ask the person who Im skinning it for - maybe its not worth all the hassle if there are going to be a lot of differences
digilee Posted November 23, 2007 Posted November 23, 2007 maybe its not worth all the hassle if there are going to be a lot of differences ... and there you go ... summing up the problem with templates. Hope it works out for you. SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design
robvr6 Posted November 23, 2007 Author Posted November 23, 2007 its just got me curious now lol because they are obviously coming from somewhere and on their current site theyve removed them so Im hoping (fingers crossed) that if I just continue to do most of the edits through the css it should be ok
Recommended Posts
Archived
This topic is now archived and is closed to further replies.