How To Remove 128 Per Page?

How do I remove this option on the category page? It just kills my server…

[quote name='Kayokoko Swimwear' timestamp='1409166540' post='190857']

How do I remove this option on the category page? It just kills my server…

[/quote]



Admin panel → Settings → Appearance → Products per page



Did it help?

[quote name='Cart-Power' timestamp='1409169884' post='190863']

Admin panel → Settings → Appearance → Products per page



Did it help?

[/quote]



no it didn't cause its set to 16… but in the actualy website category it allows for 64 and 128!

you can actually test it on my site… go to any brand and change it to 128… it crashes the browser and phones… so the question is how do I get ride of this ASAP!!Thanks

You must edit the core file \app\functions\fn.catalog.php

Find this function:

function fn_get_product_pagination_steps($cols, $products_per_page)
{
$min_range = $cols * 4;
$max_ranges = 4;
$steps = array();

for ($i = 0; $i < $max_ranges; $i++) {
$steps[] = $min_range;
$min_range = $min_range * 2;
}


Change it to this:

// Changed $max_ranges = 4; TO $max_ranges = 3;
function fn_get_product_pagination_steps($cols, $products_per_page)
{
$min_range = $cols * 4;
$max_ranges = 3;
$steps = array();
for ($i = 0; $i < $max_ranges; $i++) {
$steps[] = $min_range;
$min_range = $min_range * 2;
}


The $max_ranges variable defines how many times the default value will be doubled. i.e:

If your default is 16:

max_ranges=1 = 16

max_ranges=2 = 32

max_ranges=3 = 64

max_ranges=4 = 128



I prefer that the customer get a FASTER delivered page by default so I set my default to 12 - I only get a max of 48 with max_ranges=3

THANKS!!!