Jump to content

adding product description to category view


Guest robdav1

Recommended Posts

Guest robdav1

Hi all.

I'm trying to get my head round displaying product description text for products displayed on the category page.

I've set up my category page as my client has specified, except for the description of the product. They really don't want to use the viewprod side of things so I need a way of displaying the text on the category page.

Have a look here (http://www.robdav.co.uk/floral/Store/index.php?act=viewCat&catId=2) which is the category page for the scarlet collection. If I can get the description to show up under the product title then it's job done.

Many thanks

Link to comment
Share on other sites

I assume you mean to remove the truncation on the description of the product? This can be done by editing the reference on line 249 (about that line) in includes/content/viewCat.inc.php.

Find...

$view_cat->assign("TXT_DESC",substr(strip_tags($productResults[$i]['description']),0,$config['productPrecis'])."…");




Change to something like...


$view_cat->assign("TXT_DESC",$productResults[$i]['description']);

Edit: Ahh... oops sorry, mis-read it. The descriptions do appear if you have them in the styleTemplate/content/viewCat.tpl file. They are there in the shipped skins, as you are using a custom skin, maybe worth contacting the person who created the skin for you. You may still need the above modification to remove the truncation in the description.

Link to comment
Share on other sites

Guest robdav1

Edit: Ahh... oops sorry, mis-read it. The descriptions do appear if you have them in the styleTemplate/content/viewCat.tpl file. They are there in the shipped skins, as you are using a custom skin, maybe worth contacting the person who created the skin for you. You may still need the above modification to remove the truncation in the description.

I've created the custom skin. :lol:

Anyway, I guess what you are saying is to take a look at the viewcat.tpl of the classic skin for example, and go from there.

thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...