[SOLVED] Products module view all link?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
magallo
Dev Team Member
Dev Team Member
Posts: 123
Joined: Thu Mar 24, 2011 12:37 am

[SOLVED] Products module view all link?

Post by magallo »

Hi All,
does anyone know how to create a link to show all the products in a category?
I have the pagination to scroll between pages but it would be very useful to be able to click on a "view all" link that will simply overwrite the pagination and show all.

Thanks for the help.
Last edited by magallo on Wed Mar 09, 2016 10:12 pm, edited 1 time in total.
Magal Hezi
Pixel Solutions, Technology Partners
magal@pixelsolutions.biz | pixelsolutions.biz

Image
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Products module view all link?

Post by velden »

Have a look at the 'cms_action_url' tag (CMSMS 2.x) or CGSimpleSmarty module's 'module_action_link' method (CMSMS 1.x).

Then make sure you use the 'pagelimit' parameter on the regular {Products ...} calls and in Products preferences set 'Default page limit in summary mode' to something disabling the feature (try -1,0 or a very high number).
User avatar
magallo
Dev Team Member
Dev Team Member
Posts: 123
Joined: Thu Mar 24, 2011 12:37 am

Re: Products module view all link?

Post by magallo »

I'm not really sure how to use the CGSimpleSmarty module's 'module_action_link' method (CMSMS 1.x) so i came up with this workaround:

in the page template:
{assign var='pagecat' value=$smarty.get.cat}
{if $pagecat}
{Products category=$pagecat pagelimit="1000" }
{else}
{Products pagelimit="16" }
{/if}

in the pagination:
<a href="/view-all?cat={$valCatName}">View All</a>
Magal Hezi
Pixel Solutions, Technology Partners
magal@pixelsolutions.biz | pixelsolutions.biz

Image
Post Reply

Return to “Modules/Add-Ons”