Closed (duplicate)
Project:
Commerce Core
Version:
7.x-1.0
Component:
Checkout
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2011 at 09:05 UTC
Updated:
2 Sep 2011 at 09:53 UTC
A problem with the order total has suddenly occured in my Drupal Commerce installation. The order total is twice as much as it should be when I go to checkout and sometimes three times as much. (see screenshot)
When I add a product to the shopping cart everything looks fine and the correct price is displayed, but when i go to checkout the order total is flawed. If i remove the product and add another, the same thing occurs over again. Has anyone experienced something similar and how do I fix it?
PS: The columns in the screenshot are (title, unit price, quantity, total)
| Comment | File | Size | Author |
|---|---|---|---|
| checkout.png | 19.24 KB | HenrikBak |
Comments
Comment #1
j0rd commentedfixed spelling in title.
Comment #2
j0rd commentedFixed my own spelling this time :)
Comment #3
rszrama commentedWhoa, this is very weird indeed. I haven't seen anything like it. What more can you tell us about your site? Are you using any contributed modules besides the core Drupal Commerce and its dependencies? Do you have any product pricing rules setup?
Comment #4
HenrikBak commentedHi again. I have the following contrib modules for Commerce enabled:
Shipping
Stock
Drupal Commerce Extra Panes
DiBS payment
Commerce Invoice Receipt
I haven't setup any custom product pricing rules. I have tried to disable the above modules to see if the problem would go away, but it didn't.
I found out that some product prices are multiplied by two, some by three and some product prices are actually correct. I don't get it...
Comment #5
HenrikBak commentedOk, so I found out that the order total is only miscalculated, if the order contains a product that has been ordered before...
If an order contains a product that has been ordered X times before. Then the price is calculated like (unit price * X). So new products are just fine, but a book priced at 10€ that has been ordered 10 times before is a 100€ in the order total :S
How can I fix this? I would hate to start from scratch again.
Comment #6
rszrama commentedNo need to be too pessimistic. ; ) Nothing in here makes me think you need to start from scratch. Why don't you try disabling those contributed modules one by one and see if getting rid of any of them solves the issue. I've never used Commerce Invoice Receipt, but that sounds like something that could affect orders.
Comment #7
latulipeblanche commented@HenrikBak
I had this before when I changed the "shopping-cart-bloc"-view on the homepage (I made a pager of the view).
So if you changed that view , maybe change it back to the original form and try again.
(If not, I don't know.)
Comment #8
HenrikBak commented@latulipeblanche - I found out that the commerce stock module was causing the problem in my case. Disabling it solved the problem - too bad i can't use that module though.
Comment #9
j0rd commentedI've created an issue for this problem in the Commerce Stock module over here:
#1267550: If VAT is included in a product price, the order total goes up by that much every time the product is re-saved
Please head over there and let the author know which version you are using and where you've tracked down the error to.