jjanguda Posted August 4, 2004 Share Posted August 4, 2004 Hi, I just installed Products_short_descriptions_v1.02 and want to know how to limit the number of product info that I input in admin page just like the review box on the right column menu. This is a part of my catalog/includes/modules/product_listing.php if (PRODUCT_LIST_INFO > 0) { $lc_text .= '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . '</a><font color="#C04A03">'. $listing['products_info'] . '</font><br>'; } And this is the code that is used for catalog/includes/boxes/review.php $review_query = tep_db_query("select substring(reviews_text, 1, 60) as reviews_text from " . TABLE_REVIEWS_DESCRIPTION . " where reviews_id = '" . (int)$random_product['reviews_id'] . "' and languages_id = '" . (int)$languages_id . "'"); $review = tep_db_fetch_array($review_query); $review = tep_break_string(tep_output_string_protected($review['reviews_text']), 15, '-<br>'); I don't know how to combine two codes.. But I'd like to eliminate the product info to 30 characters(alphabets). I'll appreciate for any help. Thank you. jjanguda Link to comment Share on other sites More sharing options...
jjanguda Posted August 6, 2004 Author Share Posted August 6, 2004 anyone can help, please Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.