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.


<br />
{if $show_descr}<br />
     {capture name="prod_descr_`$obj_id`"}<br />
          {if $product.short_description}<br />
                {$product.short_description|unescape}[COLOR="Red"]<br /><br />
                {$product.full_description|unescape|strip_tags|truncate:100:"..."}{if $product.full_description|strlen > 100} <a href="{$index_script}?dispatch=products.view&product_id={$product.product_id}" class="underlined lowercase">{$lang.more}</a>{/if}[/COLOR]<br />
          {else}<br />
               {$product.full_description|unescape|strip_tags|truncate:100:"..."}{if $product.full_description|strlen > 100} <a href="{$index_script}?dispatch=products.view&product_id={$product.product_id}" class="underlined lowercase">{$lang.more}</a>{/if}<br />
          {/if}<br />
     {/capture}<br />
{/if}<br />

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


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.