cjohnson_uk Posted November 30, 2004 Share Posted November 30, 2004 When I display a category of products they appear in a list with their product name. I'd like to add the first 'n' characters of the description text under each product name to entice customers to read more and to give them a better idea of what each product is. My products are all very similar so its important to display this to allow them to choose. I thought of doing an extra short description field but have worries about how this will effect other contributions I'm using such as easy populate. Any suggestions welcome. Thanks Chris Link to comment Share on other sites More sharing options...
boxtel Posted November 30, 2004 Share Posted November 30, 2004 When I display a category of products they appear in a list with their product name. I'd like to add the first 'n' characters of the description text under each product name to entice customers to read more and to give them a better idea of what each product is. My products are all very similar so its important to display this to allow them to choose. I thought of doing an extra short description field but have worries about how this will effect other contributions I'm using such as easy populate. Any suggestions welcome. Thanks Chris <{POST_SNAPBACK}> in articles contribution we do something like this : <?php echo clean_html_comments(substr($articles_all['articles_head_desc_tag'],0, MAX_ARTICLE_ABSTRACT_LENGTH)) . ((strlen($articles_all['articles_head_desc_tag']) >= MAX_ARTICLE_ABSTRACT_LENGTH) ? '...' : ''); ?> I bet you could retrieve the product description and do something simular. you can see what that does here... http://www.crystallight.com.tw/articles.php Treasurer MFC Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2004 Share Posted November 30, 2004 There is a contrib that does this. Search for description in product listing. ed Link to comment Share on other sites More sharing options...
cjohnson_uk Posted November 30, 2004 Author Share Posted November 30, 2004 There is a contrib that does this. Search for description in product listing. ed <{POST_SNAPBACK}> Thanks to all for getting back. I'd had a quick look but not found anything. I'll put my glasses on next time! Cheers ChrisJ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.