webb_worx Posted November 29, 2007 Posted November 29, 2007 Hi, I know this sounds easy but I can't find where to extend the maximum value for the text title and description allowed to be displayed for each product in my catalogue on the category pages? Instead it's cutting out half the words and isn't reading properly. Any help would be greatly appreciated. Cheers, Brooke
♥geoffreywalton Posted December 5, 2007 Posted December 5, 2007 Please post a link demonstrating this problem. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
♥Vger Posted December 5, 2007 Posted December 5, 2007 You extend the number of characters allowed for the product name by editing the product_name field in the product_description table via phpMyAdmin, and forestalling the obvious next question - "No, you cant do it any other way". Set it to VARCHAR 255 - and that should be enough for even the most long-winded Product Name. Vger
jonquil Posted December 5, 2007 Posted December 5, 2007 Hi, I know this sounds easy but I can't find where to extend the maximum value for the text title and description allowed to be displayed for each product in my catalogue on the category pages? Instead it's cutting out half the words and isn't reading properly.Any help would be greatly appreciated. Cheers, Brooke Product description length Admin >> Configuration >> Maximum Values ->> Product Description, change the value Product Title character length Access your data base (PHPmyAdmin) Select the table: products_description Tick the box for: products_name Click on the pencil icon to "change" Change the "Length/Values*" from what you have to what you want (default is 64) Click SAVE jon It's all just ones and zeros....
webb_worx Posted January 31, 2008 Author Posted January 31, 2008 Product description length Admin >> Configuration >> Maximum Values ->> Product Description, change the value Product Title character length Access your data base (PHPmyAdmin) Select the table: products_description Tick the box for: products_name Click on the pencil icon to "change" Change the "Length/Values*" from what you have to what you want (default is 64) Click SAVE jon Hi Jon, I've changed the VARCHAR a long time ago to 100 but it isn't making a difference. I just noticed an error notification at the bottom of the page "More than one INDEX key was created for column `products_name`" Is it possible this is the problem? If so do i just delete the 2nd one? products_name INDEX products_name_2 INDEX Visit My Website I'm so scared to delete anything on my website now.... Regards, Brooke
♥geoffreywalton Posted January 31, 2008 Posted January 31, 2008 You should be OK to delete this, it is probably an error. But to be safe, back up your db. Go in and click on the edit button for the second index and print thre screen off. Then come out and delete the second index. Then test your site. If it is OK, no problem. If you have a problem you can use the screen shot to recreate the duplicate index or reload the db from your backup. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
webb_worx Posted January 31, 2008 Author Posted January 31, 2008 You should be OK to delete this, it is probably an error. But to be safe, back up your db. Go in and click on the edit button for the second index and print thre screen off. Then come out and delete the second index. Then test your site. If it is OK, no problem. If you have a problem you can use the screen shot to recreate the duplicate index or reload the db from your backup. OK I got rid of the 2nd product name index after backing up with no problems but it still didn't fix the titles of my products being cut short? >_<
jonquil Posted January 31, 2008 Posted January 31, 2008 Wahhh, is this embarrassing... I'm rading through this thread and I posted to you, Brooke, in December... So sorry! Good job Mr W stepped in to help. Looks like your 10-character limitation is happening within your index.php and products_new.php. It's fine in product_info.php. Can you post your products_new.php (in codetags)? jon It's all just ones and zeros....
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 Wahhh, is this embarrassing... I'm rading through this thread and I posted to you, Brooke, in December... So sorry! Good job Mr W stepped in to help. Looks like your 10-character limitation is happening within your index.php and products_new.php. It's fine in product_info.php. Can you post your products_new.php (in codetags)? jon Thanks for following it up still Jon, Warning it's a long file.... I can't find the right value to change? Thanks, Brooke <?php $products_new_array = array(); $products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name"; $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW); if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '2'))) { ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr> <td><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td> <td class="result_right"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php echo tep_draw_result_top(); ?> <?php } ?> <?php if ($products_new_split->number_of_rows > 0) { $products_new_query = tep_db_query($products_new_split->sql_query); $row = 0; $col = 0; $info_box_contents = array(); while ($products_new = tep_db_fetch_array($products_new_query)) { $product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_new['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); $product = tep_db_fetch_array($product_query); $p_desc = substr($product['products_description'], 0, MAX_DESCR_1); $p_id = $product['products_id']; $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; $p_name = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . substr( $products_new['products_name'],0,MAX_DESCR_NAME) . '</a>'; if ($new_price = tep_get_products_special_price($products_new['products_id'])) { $products_price = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>'; } else { $products_price = '<span class="productSpecialPrice">'.$currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']).'</span>'); } $p_price = $products_price; $products_new['products_name'] = tep_get_products_name($products_new['products_id']); $info_box_contents[$row][$col] = array('align' => 'center', 'params' => ' style=" width:50%;"', 'text' => ' '.tep_draw_prod_top().' <table cellpadding="0" cellspacing="0" border="0"> <tr><td> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td>'.$p_pic.'</td> <td>'.tep_draw_separator('spacer.gif', '16', '1').'</td> <td width="100%"> <table cellpadding="0" cellspacing="0" border="0"> <tr><td height="21" style="vertical-align:middle;">'.$p_name.'</td></tr> <tr><td height="41" style="vertical-align:middle;">'.$p_desc.'</td></tr> <tr><td height="23" style="vertical-align:middle;">'.$p_price.'</td></tr> </table> </td> </tr> </table> </td></tr> <tr><td height="13"></td></tr> <tr><td align="right"><a href="' . tep_href_link('product_info.php?products_id='.$p_id) . '">'.tep_image_button("button_details.gif").'</a><br style="line-height:1px;"><br style="line-height:5px;"><a href="'.tep_href_link("products_new.php","action=buy_now&products_id=".$p_id).'">'.tep_image_button('button_add_to_cart1.gif').'</a></td></tr> <tr><td height="3"></td></tr> </table> '.tep_draw_prod_bottom()); $col ++; if ($col > 1) { $col = 0; $row ++; } } new contentBox($info_box_contents); } else { ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr><td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td></tr> <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr> </table> <?php
jonquil Posted February 1, 2008 Posted February 1, 2008 What happens when you delete the final <?php, which I don't think should be there. It's all just ones and zeros....
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 What happens when you delete the final <?php, which I don't think should be there. Sorry I left out some of the top and bottom of the coding. The whole thing is as follows with what's suppose to be under the last <?php. <?php /* $Id: products_new.php,v 1.27 2003/06/09 22:35:33 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCTS_NEW); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRODUCTS_NEW)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td> <?php /* require(DIR_WS_BOXES . 'panel_top.php'); */ ?> <? tep_draw_heading_top();?> <? new contentBoxHeading_ProdNew($info_box_contents);?> <? tep_draw_heading_top_3();?> <?php $products_new_array = array(); $products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name"; $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW); if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '2'))) { ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr> <td><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td> <td class="result_right"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php echo tep_draw_result_top(); ?> <?php } ?> <?php if ($products_new_split->number_of_rows > 0) { $products_new_query = tep_db_query($products_new_split->sql_query); $row = 0; $col = 0; $info_box_contents = array(); while ($products_new = tep_db_fetch_array($products_new_query)) { $product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_new['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); $product = tep_db_fetch_array($product_query); $p_desc = substr($product['products_description'], 0, MAX_DESCR_1); $p_id = $product['products_id']; $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; $p_name = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . substr( $products_new['products_name'],0,MAX_DESCR_NAME) . '</a>'; if ($new_price = tep_get_products_special_price($products_new['products_id'])) { $products_price = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>'; } else { $products_price = '<span class="productSpecialPrice">'.$currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']).'</span>'); } $p_price = $products_price; $products_new['products_name'] = tep_get_products_name($products_new['products_id']); $info_box_contents[$row][$col] = array('align' => 'center', 'params' => ' style=" width:50%;"', 'text' => ' '.tep_draw_prod_top().' <table cellpadding="0" cellspacing="0" border="0"> <tr><td> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td>'.$p_pic.'</td> <td>'.tep_draw_separator('spacer.gif', '16', '1').'</td> <td width="100%"> <table cellpadding="0" cellspacing="0" border="0"> <tr><td height="21" style="vertical-align:middle;">'.$p_name.'</td></tr> <tr><td height="41" style="vertical-align:middle;">'.$p_desc.'</td></tr> <tr><td height="23" style="vertical-align:middle;">'.$p_price.'</td></tr> </table> </td> </tr> </table> </td></tr> <tr><td height="13"></td></tr> <tr><td align="right"><a href="' . tep_href_link('product_info.php?products_id='.$p_id) . '">'.tep_image_button("button_details.gif").'</a><br style="line-height:1px;"><br style="line-height:5px;"><a href="'.tep_href_link("products_new.php","action=buy_now&products_id=".$p_id).'">'.tep_image_button('button_add_to_cart1.gif').'</a></td></tr> <tr><td height="3"></td></tr> </table> '.tep_draw_prod_bottom()); $col ++; if ($col > 1) { $col = 0; $row ++; } } new contentBox($info_box_contents); } else { ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr><td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td></tr> <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr> </table> <?php } ?> <?php if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <?php echo tep_draw_result_bottom(); ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr> <td><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td> <td class="result_right"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } ?> <? tep_draw_heading_bottom_3();?> <? tep_draw_heading_bottom();?> </td></tr> </table> </td> <td valign="top"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
jonquil Posted February 1, 2008 Posted February 1, 2008 Thanks. You've made edits to this file? Do you have the original to post? It's all just ones and zeros....
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 <?php /* $Id: products_new.php,v 1.27 2003/06/09 22:35:33 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCTS_NEW); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PRODUCTS_NEW)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td> <?php /* require(DIR_WS_BOXES . 'panel_top.php'); */ ?> <? tep_draw_heading_top();?> <? new contentBoxHeading_ProdNew($info_box_contents);?> <? tep_draw_heading_top_3();?> <?php $products_new_array = array(); $products_new_query_raw = "select p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name from " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' order by p.products_date_added DESC, pd.products_name"; $products_new_split = new splitPageResults($products_new_query_raw, MAX_DISPLAY_PRODUCTS_NEW); if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '2'))) { ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr> <td><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td> <td class="result_right"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php echo tep_draw_result_top(); ?> <?php } ?> <?php if ($products_new_split->number_of_rows > 0) { $products_new_query = tep_db_query($products_new_split->sql_query); $row = 0; $col = 0; $info_box_contents = array(); while ($products_new = tep_db_fetch_array($products_new_query)) { $product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_new['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); $product = tep_db_fetch_array($product_query); $p_desc = substr($product['products_description'], 0, MAX_DESCR_1); $p_id = $product['products_id']; $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; $p_name = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . substr( $products_new['products_name'],0,MAX_DESCR_NAME) . '</a>'; if ($new_price = tep_get_products_special_price($products_new['products_id'])) { $products_price = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>'; } else { $products_price = '<span class="productSpecialPrice">'.$currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']).'</span>'); } $p_price = $products_price; $products_new['products_name'] = tep_get_products_name($products_new['products_id']); $info_box_contents[$row][$col] = array('align' => 'center', 'params' => ' style=" width:50%;"', 'text' => ' '.tep_draw_prod_top().' <table cellpadding="0" cellspacing="0" border="0"> <tr><td> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td>'.$p_pic.'</td> <td>'.tep_draw_separator('spacer.gif', '16', '1').'</td> <td width="100%"> <table cellpadding="0" cellspacing="0" border="0"> <tr><td height="21" style="vertical-align:middle;">'.$p_name.'</td></tr> <tr><td height="41" style="vertical-align:middle;">'.$p_desc.'</td></tr> <tr><td height="23" style="vertical-align:middle;">'.$p_price.'</td></tr> </table> </td> </tr> </table> </td></tr> <tr><td height="13"></td></tr> <tr><td align="right"><a href="' . tep_href_link('product_info.php?products_id='.$p_id) . '">'.tep_image_button("button_details.gif").'</a><br style="line-height:1px;"><br style="line-height:5px;"><a href="'.tep_href_link("products_new.php","action=buy_now&products_id=".$p_id).'">'.tep_image_button('button_add_to_cart1.gif').'</a></td></tr> <tr><td height="3"></td></tr> </table> '.tep_draw_prod_bottom()); $col ++; if ($col > 1) { $col = 0; $row ++; } } new contentBox($info_box_contents); } else { ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr><td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td></tr> <tr><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td></tr> </table> <?php } ?> <?php if (($products_new_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <?php echo tep_draw_result_bottom(); ?> <table border="0" cellspacing="0" cellpadding="0" class="result box_width_cont"> <tr> <td><?php echo $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW); ?></td> <td class="result_right"><?php echo TEXT_RESULT_PAGE . ' ' . $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } ?> <? tep_draw_heading_bottom_3();?> <? tep_draw_heading_bottom();?> </td></tr> </table> </td> <td valign="top"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 I think all that was edited was the price was removed from the products.
jonquil Posted February 1, 2008 Posted February 1, 2008 So if you uploaded this original version, what happens? Before you FTP, rename the server's products_new.php by adding SAVE at the end. Then upload the original. It's all just ones and zeros....
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 So if you uploaded this original version, what happens? Before you FTP, rename the server's products_new.php by adding SAVE at the end. Then upload the original. Unfortunately nothing...
jonquil Posted February 1, 2008 Posted February 1, 2008 These files are identical. Can I ask where you got this template? It's all just ones and zeros....
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 These files are identical. Can I ask where you got this template? It's been about a year since i got this template but i believe it's from http://www.template-help.com
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 It's been about a year since i got this template but i believe it's from http://www.template-help.com OK I think I've found the original zip of the template I'll try the products_new.php from it.
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 OK I think I've found the original zip of the template I'll try the products_new.php from it. still no change. I think it's the same file too, straight from the zip?
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 These files are identical. Can I ask where you got this template? Hypertemplates is actually where i got the template.
jonquil Posted February 1, 2008 Posted February 1, 2008 Hi Brooke, Before we go any further with this, I read some posts where just this week you deleted much of your site in error. It happens. And you didn't have a local backup of files and your data base, did you? Did this problem begin after the oops? How did you get your site files back? And are they current? It's all just ones and zeros....
webb_worx Posted February 1, 2008 Author Posted February 1, 2008 Hi Brooke, Before we go any further with this, I read some posts where just this week you deleted much of your site in error. It happens. And you didn't have a local backup of files and your data base, did you? Did this problem begin after the oops? How did you get your site files back? And are they current? I had this problem from the time my host server provider installed the shop for me. I did have a backup zip on the server and a backup of the database locally as well as on the server. I had to download the zip of my backup from the server and reupload it using CPanel backup. I also still had to upload the php files for the admin to show and the index file for the shop to show.
webb_worx Posted February 5, 2008 Author Posted February 5, 2008 So I finally got a reply from the store I purchased the template from it was in the header.php :rolleyes: At the bottom of the includes/header.php file there's a set of constants: define(MAX_DESCR_1,'30'); define(MAX_DESCR_NAME,'10'); define(MAX_DESCR_NAME_SHOPPCART,'35'); define(MAX_DESCR_NAME_BOX,'35'); They define how many characters will be kept in descriptions and titles throughout the template. The rest of the characters will be cut off. Just use bigger values here. Thanks again Jon for your help. :)
jonquil Posted February 5, 2008 Posted February 5, 2008 Well, you got the job done :) Plenty of people to help around here. Help pickings get mighty slim, though, when you're working with a template :) Glad you are sorted out now :) jon It's all just ones and zeros....
Recommended Posts
Archived
This topic is now archived and is closed to further replies.