Product description

The product description in product list page shows either short description or full description. I like to see its short description AND full description.

I have changed “product_data.tpl” as follows (in red). But it doesn’t work.



Thanks.



{if $show_descr}
{capture name="prod_descr_`$obj_id`"}
{if $product.short_description}
{$product.short_description|unescape}[COLOR="Red"]

{$product.full_description|unescape|strip_tags|truncate:100:"..."}{if $product.full_description|strlen > 100} {$lang.more}{/if}[/COLOR]
{else}
{$product.full_description|unescape|strip_tags|truncate:100:"..."}{if $product.full_description|strlen > 100} {$lang.more}{/if}
{/if}
{/capture}
{/if}

How does it act when you say it does not work? Does not show up? Cache needs cleaning?

Yes, cache cleared.

It shows up as if nothing had been changed.

As long as it contains both of short and full description, it always shows only short description.

$product.full_description is empty, if you do {$product.full_description} nothing shows up

Also, if you do

{$product|@print_r}


then you can see that full_description is set but empty

You need to trace back where that array is generated and see what stops it from carrying full desc. I think it is done to optimize speed. If you db access and hold 50 full descriptions in memory, that is a lot…

I see. If it’s for speed, I better reconsider using both description.

I’m going to find a way around. But later when I have a chance, I like to find out for my curiousity,



Thanks for you help.