Shopping Cart

This example shows how you can use the DataViews calculation engine to reduce coding required for typical needs, such as a Shopping Cart.

This example shows how you can use the DataViews calculation engine to reduce coding required for typical needs, such as a Shopping Cart. This demo simulates the order screen of a book store shopping cart. The product list is a grid view and the total on the right is a calculated field outside the grid. The calculation engine is used to update the subtotal column as well as the Total and Total Savings fields. Try adding items to the cart and see how the fields are updated at the bottom of the grid.
<!DOCTYPE html> <html lang="en"> <head> <base href="/dataviewsjs/demos/en/sample/Showcase/ShoppingCart/purejs/" /> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="keywords" content="calculate, calculation, formula, expression, editing, editor" /> <meta name="description" content="This example shows how you can use the DataViews calculation engine to reduce coding required for typical needs, such as a Shopping Cart." /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Shopping Cart | Showcase | MESCIUS DataViewsJS JavaScript Demos</title> <link href="/dataviewsjs/demos/node_modules/normalize.css/normalize.css" rel="stylesheet" type="text/css" /> <link href="/dataviewsjs/demos/static/css/base.css" rel="stylesheet" type="text/css" /> <link href="/dataviewsjs/demos/static/dataviews/gc.dataviews.core.min.css" rel="stylesheet" type="text/css" /> <link href="/dataviewsjs/demos/static/dataviews/gc.dataviews.grid.min.css" rel="stylesheet" type="text/css" /> <link href="styles.css" rel="stylesheet" type="text/css" /> <script src="/dataviewsjs/demos/static/js/app-polyfills.min.js" type="text/javascript"></script> <script type="text/javascript"> window.process = { env: { NODE_ENV: 'production', USE_NPM: false, USE_CDN: false, SITE_ROOT: '/dataviewsjs/demos', FRAMEWORK: 'purejs', DVJS_LICENSE_KEY: 'E348418822993781#B0EWvwY4dNNVQqJHUDpFROVWe5ZWNYFlVQFmRsJWRht4Z6lDO4Vla7YUaXhEWxd7Z5YXMuRnY7tWTQRHSlVnaYlXNhlEOpdkZ0FHWYJ5QKd6VXN5aR3ieGhUav9kZTBXWahkYBhEVutmZ72CbjdlZvV5TVdGdiplQsZXe95kUmNmZVF5cJ3mcypWNyx4U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VGbLJkcTNGRzIER8tmd4YGNhh7dxAnMvIHRv46VtBXS4U5KvJ6dZJ6M5p4TxIjd9I5QSpXTTV6SDZXb7lzaL56ZiojITJCLikTQxUTQFV4NiojIIJCLyETO7UzM7kTO0IicfJye&amp;Qf35VfikkR9IkI0IyQiwiIyEjL6ByUKBCZhVmcwNlI0IiTis7W0ICZyBlIsISNwkTN6ADI8EDMxMjMwIjI0ICdyNkIsIyc59yc5l6YzVWbuoCLwpmLzVXajNXZt9iKs2WauMXdpN6cl5mLqwSbvNmLzVXajNXZt9iKsAnau26YuMXdpN6cl5mLqwSbvNmL6VGZ9RXajVGchJ7ZuoCLuNmLt36YukHdpNWZwFmcn9iKs46bj9Se4l6YlBXYydmLqwicr9ybj9Se4l6YlBXYydmLqwCcq9ybj9Se4l6YlBXYydmLqIiOiMXbEJCLiMVVJN4UF5kI0ISYONkIsUWdyRnOiwmdFJCLiYzMyUjNxIDNxUDO5gTM5IiOiQWSiwSfdtlOicGbmJCLlNHbhZmOiI7ckJye0ICbuFkI1pjIEJCLi4TPRtGOhtWWEFWd4IDOLRVRvx4SyMGcDhTW6n4ep', }, }; </script> <script src="/dataviewsjs/demos/node_modules/jquery/dist/jquery.min.js" type="text/javascript"></script> <script src="/dataviewsjs/demos/static/dataviews/gc.dataviews.common.min.js" type="text/javascript"></script> <script src="/dataviewsjs/demos/static/dataviews/gc.dataviews.core.min.js" type="text/javascript"></script> <script src="/dataviewsjs/demos/static/dataviews/gc.dataviews.grid.min.js" type="text/javascript"></script> <script src="/dataviewsjs/demos/static/js/license.js" type="text/javascript"></script> </head> <body class="theme-default"> <noscript>You need to enable JavaScript to run this app.</noscript> <template id="rowTmpl" style="display: none"> <div class="gc-cell"> <div class="product-item"> <div data-column="productImage" class="product-item-image"></div> <div class="product-item-details"> <div data-column="productTitle"></div> </div> </div> <div data-column="productPrice" class="product-price"></div> <div data-column="productSubtotal" class="product-subtotal"></div> <div class="product-quantity"> <div data-column="productQuantity" class="product-quantity-number"></div> </div> </div> </template> <div class="container"> <div id="grid"></div> <div id="total" class="product-total"></div> </div> <script src="locale.js" type="text/javascript"></script> <script src="data.js" type="text/javascript"></script> <script src="app.js" type="text/javascript"></script> </body> </html>
var cols = [ { id: 'productId', dataField: 'id', visible: false, }, { id: 'productImage', caption: '', dataField: 'productImageUrl,productLink,productTitle', presenter: '<img class="product-item-image-resize" src="{{=it.productImageUrl}}" alt="{{=it.productTitle}}">', }, { id: 'productTitle', caption: 'Title', dataField: 'title', }, { id: 'productPrice', caption: 'Price', dataField: 'price', format: '$#,##0.00', }, { id: 'productQuantity', caption: 'Quantity', dataField: 'quantity', presenter: '<input data-id="{{=it.productId}}" min="0" value="{{=it.productQuantity}}" type="number" style="width:100%;" oninput="window.refreshQuantity(this)" />', }, { id: 'productDelete', action: [ { name: 'delete', presenter: '<div data-action="delete" style="background-color:red;color:white;width:80px;height:100%;position:relative"><span style="position:absolute;left:30%;top:40%">Delete</span></div>', handler: function handler() { return window.deleteRow(); }, }, ], width: 80, swipeDirection: 'left', }, { id: 'productSubtotal', caption: 'Subtotal', dataField: '=[productPrice] * [productQuantity]', visible: false, }, { id: 'productImageUrl', visible: false, dataField: 'url', }, { id: 'productLink', visible: false, dataField: 'link', }, { id: 'discountThreshold', visible: false, dataField: 'discountThreshold', }, ]; var layout = new GC.DataViews.GridLayout({ rowHeight: 127, showRowHeader: false, allowColumnReorder: false, allowColumnResize: false, allowSwipe: true, colHeaderHeight: 24, rowTemplate: '#rowTmpl', }); var dataView = new GC.DataViews.DataView(document.getElementById('grid'), data, cols, layout); refreshTotalPrice(); // focus data.view by default document.getElementById('grid').focus(); function refreshTotalPrice() { var formulaStringTotal = 'if(sum([productSubtotal]) > 199.99, sum([productSubtotal]) * 0.6, sum([productSubtotal]))'; var formulaStringPrice = 'sum([productSubtotal])'; var formulaStringQuantity = 'sum([productQuantity])'; var total = dataView.data.evaluate(formulaStringTotal); var price = dataView.data.evaluate(formulaStringPrice); var saving = price - total; var quantity = dataView.data.evaluate(formulaStringQuantity); var totalPriceSpan = document.getElementById('total'); var savingPercentage = price === 0 ? 0 : ((saving / price) * 100).toFixed(0); totalPriceSpan.innerHTML = '\n<div>\n <span style="font-size: 16px; font-weight: bold">\n <span>' .concat(locale.total, ' (') .concat(quantity, ' ') .concat(locale.items, '): </span>\n <span style="color:green">$') .concat(total.toFixed(2), '</span>\n </span>\n</div>\n<div>\n <span>') .concat(locale.totalSavings, ': </span>\n <span style="color:green">$') .concat(saving.toFixed(2), '</span>\n ') .concat(price === 0 ? '' : '<span>('.concat(savingPercentage, '%)</span>'), '\n</div>'); } window.deleteRow = function deleteRow(args) { var answer = confirm('Are you sure to delete row?'); if (answer) { dataView.data.removeDataItems(args.hitInfo.row); dataView.invalidate(); refreshTotalPrice(); } args.closeActionColumnPanel(); }; window.refreshQuantity = function refreshQuantity(input) { var id = parseInt($(input).data('id')); var rowData = data.find(function (t) { return t.id === id; }); if (rowData) { rowData.quantity = input.value ? parseInt(input.value) : 0; dataView.data.reCalculate(); dataView.invalidate(); refreshTotalPrice(); // focus recreated input $('input[data-id="'.concat(id, '"]')).focus(); } };
var SITE_ROOT = window.process.env.SITE_ROOT; var data = [ { id: 1, url: SITE_ROOT + '/images/51j6OH4qYhL_SS100_.jpg', link: '//www.amazon.com/gp/product/1628600837/ref=ox_sc_act_title_1?ie=UTF8&psc=1&smid=ATVPDKIKX0DER', title: 'Becoming a Supple Leopard 2nd Edition: The Ultimate Guide to Resolving Pain, Preventing Injury, and Optimizing Athletic Performance', price: 59.95, quantity: 1, }, { id: 2, url: SITE_ROOT + '/images/41ophY78M2L_SS100_.jpg', link: '//www.amazon.com/gp/product/0062190377/ref=ox_sc_act_title_2?ie=UTF8&psc=1&smid=ATVPDKIKX0DER', title: 'Seveneves: A Novel', price: 35.0, quantity: 1, }, { id: 3, url: SITE_ROOT + '/images/6195J3AhbdL_SL500_SY135_.jpg', link: '//www.amazon.com/The-Whole30-30-Day-Health-Freedom/dp/0544609719/ref=pd_cart_recs_2_2_p?ie=UTF8&refRID=0C2KPAAFEMW69ZXA0XBN', title: 'The whole 30: The 30 Days Guild to Total Healthy and Food Freedom', price: 30.0, quantity: 1, }, ];
var locale = { total: 'Total', items: 'items', totalSavings: 'Total savings' };
.container { height: 500px; overflow: auto; } #grid { border: 0; float: left; height: 410px; width: 800px; } .gc-row { padding: 3px 0; } .gc-grid, .gc-cell { border: 0; text-overflow: clip; } .gc-grid .gc-cell-content, .gc-cell .gc-cell-content { white-space: normal; } .gc-cell-border { border: 0; } .gc-column-header-cell { background-color: transparent; color: inherit; font-weight: normal; } .gc-column-header-cell.gc-cell-border { border: none; } .c4, .c5 { text-align: center; justify-content: center; } /*product presentation:*/ .product-item { display: inline-flex; align-items: center; width: 400px; } .product-item-image { display: inline-flex; align-items: center; justify-content: center; width: 120px; } .product-item-image-resize { border-radius: 4px; height: 120px; padding: 0; } .product-item-details { width: 280px; } .product-price, .product-quantity { display: inline-block; text-align: center; vertical-align: middle; width: 100px; } .product-total { background: #f1f1f1; border: solid 1px #e0e0e0; border-radius: 4px; color: #777; display: inline-block; float: right; font-family: "Roboto", sans-serif; font-weight: 300; margin-right: 1em; margin-top: 1em; padding: 1em; width: 25%; } .product-total .total-info { font-size: 16px; font-weight: bold; } .product-total .green { color: green; } @media only screen and (max-width: 768px) { .container { height: 420px; } #grid { float: none; width: 100%; } .product-total { float: none; width: 90%; } } /*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNob3djYXNlL1Nob3BwaW5nQ2FydC9wdXJlanMvc3R5bGVzLnNjc3MiLCJTaG93Y2FzZS9TaG9wcGluZ0NhcnQvcHVyZWpzL3N0eWxlcy5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxhQUFBO0VBQ0EsY0FBQTtBQ0NGOztBREVBO0VBQ0UsU0FBQTtFQUNBLFdBQUE7RUFDQSxhQUFBO0VBQ0EsWUFBQTtBQ0NGO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