How may of the "50"'s do you change? All 4?
Hi Lars
In a nutshell, yes - here is the code from my version of the file where I wanted the maximum number of products displayed on a screen to be 9, the options in the listbox to be 9,18,27,36 and 45 (Hence the '45' in the first line) and the maximum (final or 'limit') option available in the listbox to be 90:
for ($i=9; $i <= 45; $i+=9) {
if (empty( $link)) {
$limits[$i] = $i;
} else {
$limits[vmRoute($link.'&limit='.$i)] = $i;
}
}
if (empty( $link)) {
$limits[90] = 90;
} else {
$limits[vmRoute($link.'&limit=90')] = 90;
}
So with the code you have quoted, the listbox would have the values:
5
10
15
20
25
30
50
i.e. The first line says "The default number of products to display is 5 ( $i=5; ) and this should go up in steps until it reaches a value of 30 ( <= 30; ) and the increment should be 5 ( $i+=5 ). The final line says "Once you've displayed the options defined in the first line, display a maximum, or upper, option of 50.
Therefore it is important to make sure that the value of this bit of code "$i+=5"
...will divide into both the lower and upper values without leaving a remainder - for example, using a value of $i+=7 would not work
[If anyone thinks I've got something wrong in the description/explanation above, please let me know - I'm not an expert!!]
I hope that helps
Cheers
Christopher