chore: Shopping Cart styles and cleanup shallow

- Added remove button to cart item rows
- Freeze on change in Shopping Cart (UX)
- Fixed cart items and taxes/totals alignment issues
- Made Cart responsive
- Added free item indicator
- Fixed item group nested routing issue
- Sales Order is populated with right source warehouse
This commit is contained in:
marination
2021-05-27 18:53:11 +05:30
parent 2514215ec4
commit 53bb7a9cd1
10 changed files with 297 additions and 167 deletions

View File

@@ -8,7 +8,7 @@ $(() => {
let view_type = "List View";
// Render Product Views and setup Filters
frappe.require('assets/js/e-commerce.min.js', function() {
frappe.require('/assets/js/e-commerce.min.js', function() {
new erpnext.ProductView({
view_type: view_type,
products_section: $('#product-listing'),
@@ -23,20 +23,6 @@ $(() => {
e_commerce.shopping_cart.bind_add_to_cart_action();
e_commerce.wishlist.bind_wishlist_action();
}
// bind_search() {
// $('input[type=search]').on('keydown', (e) => {
// if (e.keyCode === 13) {
// // Enter
// const value = e.target.value;
// if (value) {
// window.location.search = 'search=' + e.target.value;
// } else {
// window.location.search = '';
// }
// }
// });
// }
}
new ProductListing();