Inserting 'No items available' message on products summary

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rhysdavies
Forum Members
Forum Members
Posts: 31
Joined: Thu Oct 04, 2007 9:23 am

Inserting 'No items available' message on products summary

Post by rhysdavies »

I am quite stumped at the moment!  I want to add an if statement to my products summary template to tell the users that there are no items available rather than get a blank page as happens at the moment

I have tried the following statements among others but am not getting anywhere fast.

{if !$entry}
no items message
{/if}


{if !empty ($entry)}
no items message
{else}
Summary Template etc
{/if}

{if $entry == "0"}
no items message
{/if}

Any help gratefully appreciated
rhysdavies
Forum Members
Forum Members
Posts: 31
Joined: Thu Oct 04, 2007 9:23 am

Re: Inserting 'No items available' message on products summary

Post by rhysdavies »

I've tried to use

{if $itemcount<0}
no items
{else}

SUMMARY TEMPLATE

{/if}

This works fine by showing the template when there are items to list, but with the categories that have no items, it does not display the message.

I figure that the summary template is not called at all if ther are no products to list, so naturally my message won't show, so is there another way of telling people that there are no products to list rather than give them an empty page?  This site will be handed over to a customer, and I don;t want them to have to activate/deactivate category pages depending on which categories actually have products listed at any one time.

Cheers
User avatar
manc
Forum Members
Forum Members
Posts: 107
Joined: Wed Apr 01, 2009 12:59 pm

Re: Inserting 'No items available' message on products summary

Post by manc »

did any of you find the solution to this?
Post Reply

Return to “Modules/Add-Ons”