Quote:
How/Where can I edit the pulldown menu for number of products per page?
|
In include/search.php find...
Code:
for ($i = 3; 30 >= $i; $i = $i + 3) {
$perPageValues[] = $i;
}
and replace with...
Code:
$pp = $config['Appearance']['products_per_page'];
$pp_max = $pp * 8; // # of Steps
for ($i = $pp; $pp_max >= $i; $i = $i + $pp) {
$perPageValues[] = $i;
}
So if products per page = 10 (see admin/configuration.php?option=Appearance), it'll display 10/20/30/40/50/60/70/80 per page in the dropdown.
If you want to remove the 'View All' option, in reBOOT settings > Search
Uncheck...
Enable 'View All' products option in results per page dropdown
Quote:
I want to remove a few of the sort by options
|
For the live sorters, see skin/reboot/customer/main/sorters.tpl
For the others, see skin/reboot/customer/main/search_sort_by.tpl
Code:
{foreach from=$sort_fields key=name item=field}
<option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 0} selected="selected"{/if} value="{$url}&sort={$name|amp}&sort_direction=0" class="sort_asc">{$field} ↑</option>
<option{if $smarty.get.sort eq $name && $smarty.get.sort_direction eq 1} selected="selected"{/if} value="{$url}&sort={$name|amp}&sort_direction=1" class="sort_desc">{$field} ↓</option>
{/foreach}
If you wanted to remove certain options, you can put an IF statement within that foreach.
Eg.
Code:
{if $name ne "title"}...{/if}
or
Code:
{if $name ne "title" && $name ne "review_rating"}...{/if}
Available field names...
title
price
orderby
sales_stats
review_rating
HTH