Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product description displayed in category list


cjohnson_uk

Recommended Posts

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

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

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...