From 8c90c505c0e04d7efe7082261e2034b792903e1f Mon Sep 17 00:00:00 2001 From: marination Date: Wed, 2 Feb 2022 10:40:45 +0530 Subject: [PATCH] fix: (minor) build issues on cart and item page - Move `cart.js` to public/js directory - Reorder import sequence in erpnext web bundle - Removed unused script block --- erpnext/{templates/includes => public/js}/cart.js | 0 erpnext/public/js/erpnext-web.bundle.js | 2 +- erpnext/templates/pages/cart.html | 7 ------- 3 files changed, 1 insertion(+), 8 deletions(-) rename erpnext/{templates/includes => public/js}/cart.js (100%) diff --git a/erpnext/templates/includes/cart.js b/erpnext/public/js/cart.js similarity index 100% rename from erpnext/templates/includes/cart.js rename to erpnext/public/js/cart.js diff --git a/erpnext/public/js/erpnext-web.bundle.js b/erpnext/public/js/erpnext-web.bundle.js index 194ac06aaa..cbe899dc06 100644 --- a/erpnext/public/js/erpnext-web.bundle.js +++ b/erpnext/public/js/erpnext-web.bundle.js @@ -1,6 +1,6 @@ import "./website_utils"; -import "./shopping_cart"; import "./wishlist"; +import "./shopping_cart"; import "./customer_reviews"; import "../../e_commerce/product_ui/list"; import "../../e_commerce/product_ui/views"; diff --git a/erpnext/templates/pages/cart.html b/erpnext/templates/pages/cart.html index 6eb7e6a939..2b7d9e3523 100644 --- a/erpnext/templates/pages/cart.html +++ b/erpnext/templates/pages/cart.html @@ -4,13 +4,6 @@ {% block header %}

{{ _("Shopping Cart") }}

{% endblock %} - - - {% block header_actions %} {% endblock %}