Page 1 of 1
Strange issue - Order total is 0
Posted: Thu Oct 07, 2010 10:44 pm
by kev82
I'm running opencart 1.4.9.1, and as you can see in the screenshot, the total is not being calculated in the cart, nor on checkout. Can anyone give me a pointer why this is happening?
If I add products to a finished order, that particular product gets added to the total, but the products that were in the cart before do not. Also there is the strange issue that the product in the screenshot has plenty in stock, but still gets the *** marking.

Re: Strange issue - Order total is 0
Posted: Thu Oct 07, 2010 10:58 pm
by dbstr
You can't disable Sub-Total.. Well, you can, but then the Total won't work.
Re: Strange issue - Order total is 0
Posted: Thu Oct 07, 2010 11:21 pm
by Qphoria
kev82 wrote:I'm running opencart 1.4.9.1, and as you can see in the screenshot, the total is not being calculated in the cart, nor on checkout. Can anyone give me a pointer why this is happening?
If I add products to a finished order, that particular product gets added to the total, but the products that were in the cart before do not. Also there is the strange issue that the product in the screenshot has plenty in stock, but still gets the *** marking.

It means the Option Magn 5kg is out of stock
Re: Strange issue - Order total is 0
Posted: Thu Oct 07, 2010 11:24 pm
by kev82
Thanks for the heads up Qphoria, the options had the wrong amounts in them. Thanks!
Re: Strange issue - Order total is 0
Posted: Thu Oct 07, 2010 11:37 pm
by kev82
Now this looks to be the last issue - the total is messed up here. I have tried removing all products from this order and readding them. Is this because this order was created before I enabled sub-total again?

Re: Strange issue - Order total is 0
Posted: Fri Oct 08, 2010 4:15 am
by Qphoria
That looks to be 1.4.8
The totals weren't updated with when editing products from the admin in 1.4.8
Options and weird stock behavior
Posted: Fri Oct 08, 2010 5:41 pm
by kev82
I have a product, which has options, but when I add it to the cart I get the out of stock warning
See this for example, where I have the option 100gr:
There's plenty of stock for this product, as visible here (79):
And the 100gr option should subtract 1 from the total stock:
What am I missing? Why does opencart report that there is not enough stock for this product?
I'm running latest version of oc.
Re: Options and weird stock behavior
Posted: Fri Oct 08, 2010 8:30 pm
by Qphoria
Why did you just repost this when I resolved it after you posted it here yesterday:
http://forum.opencart.com/viewtopic.php ... 09#p104305
Re: Options and weird stock behavior
Posted: Fri Oct 08, 2010 9:14 pm
by kev82
Because yesterday some of the options had "quantity = 0" in them. I changed that to 1 (or however many that option represents) and thought that fixed the issue. Well now it looks like it didn't, because options now have the proper quantity, but I still get the out of stock error (***).
I created a new thread to avoid confusing people over the issue, and posted better screenshots showing my issue. I apologize if that was not ok.
I'm still lost why I have this issue.
Re: Options and weird stock behavior
Posted: Sat Oct 09, 2010 2:58 am
by kev82
Does anyone have an idea why this is? Why does oc tell me not enough stock when there is plenty?
Re: Options and weird stock behavior
Posted: Sun Oct 10, 2010 5:41 pm
by kev82
Turns out the Quantity number on options is not how much to subtract from the quantity of the parent product, but just the number of items of that option in stock.
Re: Options and weird stock behavior
Posted: Sun Oct 10, 2010 7:03 pm
by JAY6390
Yes, the number in your options relates to the number of that product, not the amount of that stock to subtract