Zen Cart Logo
Forums / General Questions / Cart Price doubles on Checkout

Cart Price doubles on Checkout

Locked

Views: 842

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
6 Dec 2010, 4:48 PM
#1
wdkstudio avatar

wdkstudio

New Zenner

Join Date:
Jan 2007
Location:
Whitstable - UK
Posts:
48
Plugin Contributions:
0

Cart Price doubles on Checkout

Hi just doing final testing on new site using Zen-Cart v1.3.9f.

Evertthing goes fine until I get to checkout, when the orice of the cart contents double!

The VAT calculates ok on the doubled price and shipping cost ok.

Any help would be appreciated.

Thank you

The site is at http://weldingandfixingsupplies.com/index.php (site sits behind html holding page)

WDK Studio

8 Dec 2010, 1:36 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Cart Price doubles on Checkout

wdkstudio:

Evertthing goes fine until I get to checkout, when the orice of the cart contents double!

How strange. Sorry, I've no idea what could possibly cause this, but I'd be taking a look at your /modules/order_totals as a first step to see if there is anything 'obvious' amiss there.. After that, well, I wouldn't have a clue.... A real mystery :)

Cheers
Rod

10 Dec 2010, 7:50 PM
#3
wdkstudio avatar

wdkstudio

New Zenner

Join Date:
Jan 2007
Location:
Whitstable - UK
Posts:
48
Plugin Contributions:
0

Re: Cart Price doubles on Checkout

Hi Rod

thanks for the suggestion - unfortunately having done a file comparison with the original instal files couldn't find any errors.

Is there anywhere else where this calculation's perfomed?

Thanks for your help anyway

Cheers

WDK Studio

11 Dec 2010, 7:16 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Cart Price doubles on Checkout

wdkstudio:

Hi Rod

thanks for the suggestion - unfortunately having done a file comparison with the original instal files couldn't find any errors.

The thing here is, you probably aren't actually looking for an 'error' as such. You will probably/possibly be looking for additional files or something similar, so comparing file contents won't reveal anything amiss. Try comparing directory contents... ... I'm REALLY clutching at straws here though

wdkstudio:

Is there anywhere else where this calculation's perfomed?

Not that I'm aware of.. This isn't an area of my expertise - I do know that if you/we can attact DrB's or Ajeh's attention on this one they may have better ideas ...

This isn't one of the 'normal' problems that people experience, and it was different enough to attract my interest, so hopefully it'll pique their curiousity too.

Cheers
Rod

11 Dec 2010, 8:29 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Cart Price doubles on Checkout

Without studying the problem with any real details, my gut hunch is that you've got duplicates of some files (or segments of code) on your server for some reason. A common bad practice that people use is to rename files "for backup purposes" but erroneously keep the ".php" extension on the filename. ie: name a file "header_php-old.php" instead of just calling it "header_php.old". If there are multiple .php files of similar names in various folders, ALL those files will often be loaded ... causing duplication of certain functionality.

So, redo your comparison, and remove any "extra" files which shouldn't be present on the server.

12 Dec 2010, 9:17 AM
#6
wdkstudio avatar

wdkstudio

New Zenner

Join Date:
Jan 2007
Location:
Whitstable - UK
Posts:
48
Plugin Contributions:
0

Re: Cart Price doubles on Checkout

Thanks Rod & Dr Byte

finally resolved the problem. I had installed a beta version of a VAT module (that I've used before). This involved adding some sections to the classes/order.php file. I had added in a section but failed to comment out the section it replaced, thereby duplicating it.

Hence the problem.

I really appreciate your time and help

Cheers

WDK Studio