mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user