Product Description in Grid view

Hi guys



I have a little bit of a problem



I am trying to show the product descritpion in the grid view list in a block but had no luck!



I am trying to put a product description in the grid.tpl of the customer block list type.





[font=arial, sans-serif][size=3]I made a file product_multicolumns_list.override.tpl in /skins/basic/customer/addons/my_changes/hooks/products[/size][/font]



[font=arial, sans-serif][size=3]which overrides part of grid_list.tpl in /skins/basic/customer/blocks/list_templates[/size][/font]







[font=arial, sans-serif][size=3]Inside I have this[/size][/font]











[font=arial, sans-serif][size=3]












{include file="common_templates/image.tpl" obj_id=$obj_id_prefix images=$product.main_pair object_type="product" show_thumbnail="Y" image_width=$settings.Thumbnails.product_lists_thumbnail_width image_height=$settings.Thumbnails.product_lists_thumbnail_height}


{if $item_number == "Y"}{$cur_number}. {math equation="num + 1" num=$cur_number assign="cur_number"}{/if}
{assign var="name" value="name_$obj_id"}{$smarty.capture.$name}

[color=#00ff00]

CODE: {$product.product_code}

[/color]
[color=#ff0000]

{$product.short_description|unescape|truncate:100:"...":true}


{assign var="descr" value="descr_$obj_id"}{$smarty.capture.$descr}

[/color]


{assign var="old_price" value="old_price_`$obj_id`"}
{if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price} {/if}

{assign var="price" value="price_`$obj_id`"}
{$smarty.capture.$price}

{assign var="clean_price" value="clean_price_`$obj_id`"}
{$smarty.capture.$clean_price}

{assign var="list_discount" value="list_discount_`$obj_id`"}
{$smarty.capture.$list_discount}




{if $show_add_to_cart}

{assign var="add_to_cart" value="add_to_cart_`$obj_id`"}
{$smarty.capture.$add_to_cart}

{/if}


{if $show_add_to_cart}

{/if}


[/size][/font]



[font=arial, sans-serif][size=3]In green is the SKU which works fine.
In red are 2 different tries to bring product description to the list. I thought I might had to play also with the file products_multicolumns.tpl in skins/basic/customer/blocks/product_list_templates but had no luck.

Do you think you can give me a hint how to do that?

Thanks

Fotis[/size][/font]

You can try this for the red part:



{if $product.short_description}

{$product.short_description|unescape}

{else}

{$product.full_description|unescape|strip_tags|truncate:160}{if !$hide_links && $product.full_description|strlen > 180} $product.product_id”|fn_url}” class=“lowercase”>{$lang.more}{/if}

{/if}



but in order you layout to be consistent, you would need all your short descriptions to be empty.

Hi thanks for that but it doesnt realy take in concideation the [color=#282828][font=arial, verdana, tahoma, sans-serif]$product.full_description[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]It comes empty. There must besoemthing else to it.[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Dont forget this not [/font][/color] in category product list view but in a block in the first page.

i see…i only checked the category list (and it worked), but doesn't show up on the homepage, you're right. maybe someone else could help on this…

I had either Alt-Team or ######## do this for me. I can't remember exactly what they did, but I know that the thing that was holding me back from doing it myself was adding some code to schemas/block_manager/templates.tpl



Below:


'bulk_modifier' => array (
'fn_gather_additional_products_data' => array (
'products' => '#this',
'params' => array (
'get_icon' => true,
'get_detailed' => true,
'get_options' => true,
),
),
),




Add:


'params' => array (
'extend' => array('description'),
),




Try that and see what happens. As well as adding the other code to the template files of course.



If that doesn't do it, I'll dig around more and see what exactly was changed.



Thanks,



Brandon

Hi Brandon



Yes this did it!!



Thanks man

It's work on cs-cart v4?