From b125922123026d4c92d5f3b9ef69d6f05fb26404 Mon Sep 17 00:00:00 2001 From: Quoc Anh Nguyen Date: Tue, 27 Oct 2020 16:30:01 +0700 Subject: [PATCH] Fix when adding an item to cart, the green flyout have "View Cart" and "Checkout" button to go to an "/undefined" page. --- src/Foundation/Features/CatalogContent/product.js | 2 +- .../Features/Shared/Views/Header/_MiniCartItems.cshtml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Foundation/Features/CatalogContent/product.js b/src/Foundation/Features/CatalogContent/product.js index c45012648..e60f2c16f 100644 --- a/src/Foundation/Features/CatalogContent/product.js +++ b/src/Foundation/Features/CatalogContent/product.js @@ -16,7 +16,7 @@ } addToCart(data, url, callback, isAddToCart) { - $('body>.loading-box').show(); + $('body > .loading-box').show(); data.requestFrom = "axios"; axios.post(url, data) .then(function (result) { diff --git a/src/Foundation/Features/Shared/Views/Header/_MiniCartItems.cshtml b/src/Foundation/Features/Shared/Views/Header/_MiniCartItems.cshtml index 17891012d..5ba576d81 100644 --- a/src/Foundation/Features/Shared/Views/Header/_MiniCartItems.cshtml +++ b/src/Foundation/Features/Shared/Views/Header/_MiniCartItems.cshtml @@ -46,10 +46,11 @@ Subtotal (@((int)Model.ItemCount) items): @Model.Total.ToString()

- -