From 5297321207c2d45f8bb1c3e6f692fbde93148f0f Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Mon, 13 Nov 2017 13:27:02 +0100 Subject: [PATCH] [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 --- addons/website_sale/views/templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 663f57f8b5e..b260d26af7e 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -1396,7 +1396,7 @@