Contributions

Features (Category Index)
Search: 

Short Description in Product Listing

This module will allow you to display a truncated version of your product description in the product listing table - The description is truncated at a predefined number of characters (defined in the Admin panel) and a trailing ellipsis (...) added.

Expand All / Collapse All

Description in Product Listing v.2 Paul Crovella 9 Sep 2002

(based on the 9/1 snapshot; original mod by John Poynton <admin@stickyweb.com.au>)

This mod displays a truncated product description in the product listing underneath any other info you've decided to show there (manufacturer, price, model, etc.) with the exception of the product image. The product image will span both rows if it and the description are both present.

It'll display at most however many characters you tell it to in the admin, but instead of splitting up a word it will backtrack until it finds a space character to truncate the description at. All html is stripped out (except for the following tags: <a><b><em><font><i><s><span><strong><sub><sup><u>) to make sure block level elements do not completely destroy the product listing. And finally, an ellipses (...) is added to the end of the description if part of the description was actually cut off.

Comments, bug reports, etc. are welcome at paul_crovella@myrealbox.com

Short Description in Product Listing 1.2 John Poynton 19 Mar 2002
Short Description in Product Listing 1.1 John Poynton 17 Mar 2002
Short Description in Product Listing 1.0 John Poynton 16 Mar 2002

Note: Contributions are used at own risk.