diff options
| author | Romain Derie <rde@odoo.com> | 2017-11-13 13:27:02 +0100 |
|---|---|---|
| committer | Romain Derie <rde@odoo.com> | 2017-11-15 12:45:41 +0100 |
| commit | 5297321207c2d45f8bb1c3e6f692fbde93148f0f (patch) | |
| tree | 5467bfabe804a51d0a0b5671683eb9e8513574bc /doc/reference/javascript.rst | |
| parent | b152c5be4faaca651e1fe0173e66d330291cef98 (diff) | |
[FIX] website_sale: 0.00 total is showing in empty cart if logged in
Before this commit, if you go on /shop/cart and your cart is empty, it will
show the total (Subtotal, Taxes, Total) as $ 0.00.
Indeed, the code is retrieving a 'sale.order' if you are connected and you
already have a draft sale order on DB (eg: you just add something to cart and
emptied it afterward).
- Add product to your cart and proceed to checkout
- On checkout cart, remove the product, your cart is now empty
- Reload the page (you should still be on /shop/cart) or go to /shop/cart
- You now see the zero prices (Subtotal, Taxes, Total)
Now, we will hide this if you have an order but no line on that order.
This closes #20896
Diffstat (limited to 'doc/reference/javascript.rst')
0 files changed, 0 insertions, 0 deletions
