Knowledgebase

Home » Item #612

Setting the increment on the quantity dropdown

Item: #612
Date: 5 Sep 2003
Applies to
v5

Question

In the quantity dropdown next to versions, I want it to start at x, and go up in increments of y. Is this possible?

Answer

The only config setting to control the quantity dropdown is 'addtobasketdropdownmax', which sets the number of items that are displayed. For more control over the dropdown, you will need to edit the ASP.

Open up front_versiontemplate.asp in the includes directory, and go down to line 72. There you should see this line;

<% for numCounter = 1 to 
Application(LICENSENUMBER & "addtobasketdropdownmax") %>
Alter this to;
<% for numCounter = x to y Step x %>
Where x is the number to start at, y is the number to end with, and z is the increment. So for example;
<% for numCounter = 10 to 50 Step 2 %>
Will create a dropdown with values 10, 12, 14, 16... up to 50.

Can't find the answer you need? Click here to open a support ticket.

« Back