superness Posted January 7, 2010 Share Posted January 7, 2010 Hi! I am having a problem with my bestseller list. The product names shown in the bestseller list were incomplete. It seems that the bestseller list have a limit on the number of characters to be shown but i dont know where to change it. You can view my site at http://www.petnessandbeauty.com/ You can see my bestseller list in the left column. Also, how can i make the bestseller list shown on every page. I dont want it to change when i click on a category. It seems that my bestseller list depends on what category the client is viewing. I hope someone can help me with this problem. Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted January 7, 2010 Share Posted January 7, 2010 Look in the column_left.php and remove the conditional. The length of the item names is likely being truncated by the template, which I am not familiar with. I'd have to look at the code to even guess at it. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
superness Posted January 8, 2010 Author Share Posted January 8, 2010 Look in the column_left.php and remove the conditional. The length of the item names is likely being truncated by the template, which I am not familiar with. I'd have to look at the code to even guess at it. Thanks for replying to my question. Here's the code for my column_left.php <?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 (c) 2003 osCommerce Released under the GNU General Public License */ ?> <table border="0"cellspacing="0" cellpadding="0" class="box_width_left"> <tr><td width="100%"> <table border="0" cellspacing="0" cellpadding="0"> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.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 . 'whats_new.php'); // ------------------------------------------------- require(DIR_WS_BOXES . 'information.php'); // ------------------------------------------------- if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.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'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); // ------------------------------------------------- require(DIR_WS_BOXES . 'search.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 . 'shopping_cart.php'); ?> </table> </td> <td><?php echo tep_draw_separator('spacer.gif', '9', '1'); ?></td></tr> </table> Link to comment Share on other sites More sharing options...
cube Posted January 8, 2010 Share Posted January 8, 2010 catalog/includes/boxes/best_sellers.php is sensitive to which category is displayed, which is why it changes as you navigate the store. To change this behaviour, and get the same result regardless of category, tweak the 'if' statement at the top of the file to only use the second, more general, query. Truncating the names will be a template issue. Link to comment Share on other sites More sharing options...
superness Posted January 8, 2010 Author Share Posted January 8, 2010 catalog/includes/boxes/best_sellers.php is sensitive to which category is displayed, which is why it changes as you navigate the store. To change this behaviour, and get the same result regardless of category, tweak the 'if' statement at the top of the file to only use the second, more general, query. Truncating the names will be a template issue. how can i edit the template so that it will not truncate the names? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.