Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Error in group discount calculation at checkout

Error in group discount calculation at checkout

Locked

Views: 3,659

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
29 Jun 2006, 8:12 PM
#1
fred_philpott avatar

fred_philpott

New Zenner

Join Date:
Jun 2006
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Error in group discount calculation at checkout

I have a problem with group discount being calculated incorrectly on checkout. The discount is being calculated on the value including VAT and then deducted from the value excluding VAT.

Example:-
Product price = 2750.00 ex. VAT
Group discount = 25%
VAT = 14% (South Africa)
Shipping is free

What I see is:-

Sub-Total: R2750.00
Store Pickup (Walk In): R0.00
Group Discount: -R783.75
V.A.T.: R288.75

Total: R2255.00

Discount should be 2750.00 *.25 = 687.50

What I expect to see is:-

Sub-Total: R2750.00
Store Pickup (Walk In): R0.00
Group Discount: -R687.50
V.A.T.: R288.75

Total: R2351.25

Is there an error or am I doing something wrong? I am using version 1.3.0

29 Jun 2006, 8:47 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Error in group discount calculation at checkout

I would recommend upgrading to v1.3.0.2 before trying to address this issue ...

Note: the changed v1.3.0.2 is not meant for upgrading from v1.3 ... that is only for upgrading from v1.3.0.1 ...

Backup both your database and website ...

Then make a test directory such as /new_shop and load a copy of your current site ...

Then make a new database and load a copy of your current database ...

Change the paths and database in the /includes/configure.php and /admin/includes/configure.php to your test directory and test database ...

Use these to perform your upgrade ... and test the upgrade to ensure that it works ...

This way you are starting with the current version of Zen Cart and not one that needs upgrading ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

1 Jul 2006, 4:16 AM
#3
bootyrat avatar

bootyrat

New Zenner

Join Date:
Jun 2006
Location:
Oz
Posts:
31
Plugin Contributions:
0

Re: Error in group discount calculation at checkout

Hi I found exactly the same thing...

In admin got to modules - order total - group discount
here you can select to include tax or not.

Hope this helps
Dave

4 Jul 2006, 12:12 PM
#4
fred_philpott avatar

fred_philpott

New Zenner

Join Date:
Jun 2006
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: Error in group discount calculation at checkout

Hi Dave,

Thanks for the help, that solved the problem.

I finally got 1.3.0.2 installed as Linda suggested, and restored the database from my original setup.

Now I get a message that I should patch the database, but I am struggling to find more info.

Regards
Fred

4 Jul 2006, 12:29 PM
#5
fred_philpott avatar

fred_philpott

New Zenner

Join Date:
Jun 2006
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: Error in group discount calculation at checkout

OK! It's me again.

I found the database upgrade option in zc_install and everything is looking great so far.

Thanks again for the help.

Fred