sezana Posted November 26, 2008 Share Posted November 26, 2008 Hi! How can I remove box "Tell a friend" in page catalog/product_info.php?products_id=xxxxxxx ? Thanx for help. Link to comment Share on other sites More sharing options...
Black Jack 21 Posted November 26, 2008 Share Posted November 26, 2008 Hi!How can I remove box "Tell a friend" in page catalog/product_info.php?products_id=xxxxxxx ? Thanx for help. In catalog/includes/column_right.php search for 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'); } replace with include(DIR_WS_BOXES . 'specials.php'); BJ Link to comment Share on other sites More sharing options...
sezana Posted November 26, 2008 Author Share Posted November 26, 2008 You are great, I received answer very quickly! :-) I've got another question: I am translating the english text to my language. But I dont find the file with a text " Flat Rate" and "Best Way" which appears on site catalog/checkout_shipping.php Link to comment Share on other sites More sharing options...
Black Jack 21 Posted November 26, 2008 Share Posted November 26, 2008 You are great, I received answer very quickly! :-) I've got another question: I am translating the english text to my language. But I dont find the file with a text " Flat Rate" and "Best Way" which appears on site catalog/checkout_shipping.php Under catalog/includes/languages/english/modules/shipping? :-) Link to comment Share on other sites More sharing options...
sezana Posted November 26, 2008 Author Share Posted November 26, 2008 THX! Link to comment Share on other sites More sharing options...
sezana Posted November 27, 2008 Author Share Posted November 27, 2008 I also want to remove box "Notifications" in right column. I thought it will be the same process like removing "Tell a friend" but it isn't. Please, can You tell me, how I do this change? THY! Link to comment Share on other sites More sharing options...
Black Jack 21 Posted November 27, 2008 Share Posted November 27, 2008 I also want to remove box "Notifications" in right column. I thought it will be the same process like removing "Tell a friend" but it isn't. Please, can You tell me, how I do this change? THY! Not so easy catalog/includes/column_right.php find: 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'); } replace with: // 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'); // } catalog/account.php find: <tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td> </tr> replace with: <!--<tr> <td class="main"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td> </tr> //--> catalog/checkout_success.php find: <?php if ($global['global_product_notifications'] != '1') { echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">'; $products_displayed = array(); for ($i=0, $n=sizeof($products_array); $i<$n; $i++) { if (!in_array($products_array[$i]['id'], $products_displayed)) { echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>'; $products_displayed[] = $products_array[$i]['id']; } } echo '</p>'; } else { echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; } ?> replace with: <?php // if ($global['global_product_notifications'] != '1') { // echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">'; // $products_displayed = array(); // for ($i=0, $n=sizeof($products_array); $i<$n; $i++) { // if (!in_array($products_array[$i]['id'], $products_displayed)) { // echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>'; // $products_displayed[] = $products_array[$i]['id']; // } // } // echo '</p>'; // } else { echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; // } ?> Attention! I've not tested this, so please back up before editing! If this fails, ask a better guy for help - i'm only stumbling around. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.