This is a discussion on Taking out right column boxes within the osCMax v1.7 General Mods Discussion forums, part of the osCMax v1.7 Forums category; I don't know how to take out some of the boxes (sorry, don't know what they're called) on the right ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I don't know how to take out some of the boxes (sorry, don't know what they're called) on the right column. These are the categories I want to delete: -manufacture info -currencies -languages -tell a friend -review I looked everywhere, but still don't know. Also, is there a way to take out the "click to enlarge" option? I can't get it to work, so I'm putting the images in the HTML. Any help would be appreciated. Thanks |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| open file /includes/column_right.php and comment the boxes you dont want out using the standard php comment tag of "//" before any require statements for the boxes you want gone. Open product_info.php and edit the code to remove the hyperlink for the "click to enlarge".
__________________ Clifton Murphy CEO/CTO Hyperactive Inc. osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists! |
|
#3
| |||
| |||
| Thanks, I really appreciate it. I was going crazy. |
|
#4
| |||
| |||
| Ok, I looked at it and I just want to make sure that I understood what you explained. So when it says "manufacture_info" I'll replace it with "//" right? Also, for the click to enlarge issue, how do I edit the code to remove the hyperlink? I was thinking I just had to erase something and then I read your sentence again. Thanks for the help. |
|
#5
| |||
| |||
| Place the slashes after <?php and before the include directive: Code: <?php //include(DIR_WS_BOXES . 'manufacturers.php'); ?> |
|
#6
| |||
| |||
| How do you edit the code for the "enlarge image" to get rid of it? I received this reply: Open product_info.php and edit the code to remove the hyperlink for the "click to enlarge". I don't know how to edit the code. Thanks |
|
#7
| ||||
| ||||
| Easy Way: /catalog/includes/languages/english/product_info.php find code: Code: define('TEXT_CLICK_TO_ENLARGE', 'Click to enlarge');
Code: define('TEXT_CLICK_TO_ENLARGE', '');
Harder Way: if using MAX 1.7 open /templates/templatename/product_info.tpl.php and look for this code around line 86 Code: <script language="javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>
Code: <script language="javascript"><!--
document.write('<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>');
//--></script>
<noscript>
<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?>
</noscript>
This will remove the text from the screen and prevent the image from being a link itself as well.
__________________ Clifton Murphy CEO/CTO Hyperactive Inc. osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists! |
|
#8
| |||
| |||
| I tried to follow the instructions given to me, but maybe I'm doing something wrong. Don't know anything about php, so I need all the help I can get. This is what's in the include/column_right.php section: <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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, include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> So where do I place the "//"? |
|
#9
| ||||
| ||||
| the standard characters to "comment" out code in php is // this means for any boxes you want removed you will need to add a "//" before them above. An example would be if you wanted to remove the "languages" info box from the right_column of your store, above you would change the line: Code: include(DIR_WS_BOXES . 'languages.php'); Code: // include(DIR_WS_BOXES . 'languages.php'); |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Boxes and left column help please | countingsheep | osCMax v2 Customization/Mods | 2 | 08-31-2006 04:20 PM |
| taking advantage of dynamic meta tags | humanode | osCMax v2 Features Discussion | 2 | 11-24-2005 07:28 PM |
| non-permanent way of moving boxes from one column to another | innovations | osCommerce 2.2 Modification Help | 1 | 12-17-2004 04:37 PM |
| Move all in rh column to left and remove RH column | jloyzaga | osCMax v1.7 Discussion | 0 | 03-24-2004 04:24 PM |
| Taking OSCommerce off site? | WebMistress | osCommerce 2.2 Modification Help | 1 | 11-12-2003 04:31 PM |