Products action categorylist and pagelimit ?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
pedes
Power Poster
Power Poster
Posts: 840
Joined: Tue Jan 27, 2009 11:47 am

Products action categorylist and pagelimit ?

Post by pedes »

I'm trying to get 9 items on a page form the categorylist.
So I thought using:

Code: Select all

{Products summarytemplate='mytemplate' action=categorylist pagelimit='9'}
But that seems not to work.

Is there a way to build it in the category list template?
The default category list template looks like this:

Code: Select all

<div class="products_category_list">
{foreach from=$categorylist item='obj'}
  <div class="products_category">
    {* category fields are available as an array in $obj->fields *}
    {* i.e: $obj->fields.fieldname.field_value *}
    {if isset($obj->fields)}
    {foreach from=$obj->fields key='field_name' item='fielddata'}
      <div class="products_category_field">
        {$fielddata.field_prompt} = {$fielddata.field_value}
      </div>
    {/foreach}
    {/if}
    {if isset($obj->detail_url)}
      <a href="{$obj->detail_url}">Details For {$obj->name}</a>&nbsp;&nbsp;
    {/if}
    <a href="{$obj->summary_url}">Products Matching {$obj->name}</a>({$obj->count})
  </div>
{/foreach}
</div>
Thank you for any idea.
Kids regards
Peter
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Products action categorylist and pagelimit ?

Post by velden »

The help of Products states that the pagelimit parameter won't work for other actions than 'default' and 'search'.

So if you want pagination, you should build it yourself. Either using some kind of javascript or by using Smarty. Neither of those options is ideal but it should be doable.
Post Reply

Return to “Modules/Add-Ons”