View Single Post
  #1  
Old 03-28-2006, 08:03 PM
 
fractalspin fractalspin is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 72
 

Default Adding short descriptions to products in multicolumn view

OK, someone probably can figure out a more elegant way of doing this, but this is how I got the short description field to show up in multicolumn / thumbnail view.

For having the description ONLY on the multicolumn view and NOT the featured products, find this bit of code in xcar-dir/skin1/customer/main/products_t.tpl (~ line 30):


and ADD this after it:

Code:
{if $main eq "catalog" and $current_category.category eq ""} {else} <FONT size="1"> {$products[product].descr|truncate:300:"...":true} </FONT> {/if}

To do the inverse, with the short description showing up only on the featured products, add this after that same bit of code instead:

Code:
{if $main eq "catalog" and $current_category.category eq ""} <FONT size="1"> {$products[product].descr|truncate:300:"...":true} </FONT> {else} {/if}

Check it out here: http://www.fractalspin.com.
__________________
http://www.fractalspin.com
nerdy jewelry, geekcessories, bags, tshirts and other neat stuff

Xcart Version: 4.0.17, PHP: 4.3.11, MySQL server: 4.1.13-standard-log
Reply With Quote