X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Adding short descriptions to products in multicolumn view (https://forum.x-cart.com/showthread.php?t=20793)

fractalspin 03-28-2006 08:03 PM

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.

balinor 05-04-2006 06:28 PM

Don't forget to use {* *}for comments instead of


All times are GMT -8. The time now is 07:33 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.