Guest Posted January 30, 2003 Share Posted January 30, 2003 I tried to add the short product description contrib to my site, It really messed up the tables, even with moving the pictures to list column 1. There is a function in the general.php file that wa made for the contrib: function osc_trunc_string($str="",$len=150,$more=1) The way I want to implement this is by putting a <br> into the product listing colum and putting in the code example: (my code is slightly modified to add the manufacturer to the list also) $lc_text = '<a class="productListing-data" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . ($HTTP_GET_VARS['cPath'] ? $HTTP_GET_VARS['cPath'] : tep_get_product_path($listing_values['products_id']) ) . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . $listing_values['manufacturers_name'] . ' ' . $listing_values['products_name'] . '</a><br>' . osc_trunc_string(strip_tags($listing_values['products_description'], ''), PRODUCT_LIST_DESCRIPTION_LENGTH) . ''; So I'm wondering what code would I need so that I'm not dealing with broken colum and table issues currently present in my site http://www.forksdrumcloset.com Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.