Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
Thread Tools Search this Thread Display Modes
Old November 26th, 2012, 04:12 PM
kaje kaje is offline
Join Date: Mar 2011
Posts: 142
Default Hide Pagination Based on Product Count

Is there a way to hide the page pagination and "per page" drop down sorting features if there is a minimum amount of products in that category?

I currently have 18 products to display by default in my categories. Many categories have more then this but some have less. I'd like to hide the pagination/number of products sorting from showing if there isn't at least 19 products available. Any idea how this could be done?
Old November 26th, 2012, 05:28 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
Join Date: Feb 2008
Posts: 16,902


You could do something like this:

HTML Code:
<?php if ($category->pc > 18) : ?>
<!-- Pagination Links (Top) -->
<div class="pgr">
  [pager.first text='<img src="[server.plugin_url]/first.gif" alt="first page" />' alt='']
  [pager.prev text='<img src="[server.plugin_url]/prev.gif" alt="prev page" />' alt='']
  [pager.pages delim=' ']
  [ text='<img src="[server.plugin_url]/next.gif" alt="next page" />' alt='']
  [pager.last text='<img src="[server.plugin_url]/last.gif" alt="last page" />' alt='']
<!-- /Pagination Links (Top) -->

<?php endif; ?>
Old November 26th, 2012, 05:46 PM
kaje kaje is offline
Join Date: Mar 2011
Posts: 142

Works perfect! Thanks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Published Product Count is Different from the Datafeedr factory. emiclat Problems 3 October 25th, 2012 09:05 AM
selecting merchant based on product search smartone78 Questions 1 July 5th, 2012 07:54 AM
Product Count not working ayorofrance Problems 11 January 31st, 2011 09:31 AM

All times are GMT -5. The time now is 01:09 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.