PDA

View Full Version : Empty descriptions


Bud
09-04-08, 02:31
I don't like having empty product descriptions, especially on the product page, so I've added a little code to at least fill the empty space:

In .../elements/product_disply.tpl, just above:

<p>{$sProductDesc}</p>
<p>{$sProductPromo}</p>

I've inserted

{if $sProductDesc ==""}
<p>For more information about this {$sProductName} please visit {$sMerchantName}'s product page for this item.</p>
<p>Simply click the picture to the left for detailed information and ordering.</p>
{else}
{/if}

It's probably not perfect, but seems to do the job.

Likewise, you can do the same with product_display_list.tpl if desired.

Hope that's of use to someone.

GeorgeGaz
09-04-08, 10:18
Hi Bud,

That looks like a really useful piece of code!

Thanks for sharing ;)

Cheers

IntroSites
09-04-08, 15:42
good idea Bud,

dont forget the $sProductDesc between {else} and {/if}