Knowledgebase

Home > Item #111

The 'price_calc_shippingandtotals.asp' include or 'shipoptions.asp' gives an exception error when I make an order

Item: #111
Date: 10 Jan 2002
Applies to
v4
v5

Question

I get an error on the mailorder.asp page like this:


Exception occurred.
/cactushop/includes/price_calc_shippingandtotals.asp, line 31


or I get this on shipoptions.asp:


error '80020009'
/shipoptions.asp, line 239


What's going wrong?

Answer

This is because the script expects to find a value of a tax band that exists in your database. As default, the tax bands are 1, 2, 3 and 4. If you set the 'shiptaxband' value in the config settings as 0 or some other value that does not correspond to the tax bands you have set up, this error will occur.

To rectify it, open up the config settings list in the back end, and click the 'Tax Rates' link near the bottom left hand side of the page. You should see which bands you have set up and what value (percentage) tax they represent.

Next, open up the config settings, click 'shiptaxband' in the Miscellaneous section and change the value to the appropriate band (NOT the percentage tax you wish to apply, but the band that corresponds to this). In this way, the shipping tax rate will change when that band value does. So if tax goes up from 5% to 7%, you only need change the tax band record and all products (and shipping) that use this band will use the new value.

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

« Back