Adding custom JavaScript/SCSS files
The Point of Sale app uses different asset bundles to manage JavaScript and style sheet files. In this recipe, we will learn how to add SCSS and JavaScript files to the Point of Sale asset bundle.
Getting ready
First, we will load an SCSS style sheet and a JavaScript file into the Point of Sale application.
How to do it…
To load assets into the Point of Sale application, follow these steps:
- Add a new SCSS file at
point_of_sale_customization/static/src/scss/point_of_sale_customization.scss
and insert the following code:.pos .pos-content { Â Â Â Â .price-tag { Â Â Â Â Â Â Â Â background: #00abcd; Â Â Â Â Â Â Â Â width: 100%; Â Â Â Â Â Â Â Â right: 0; Â Â Â Â Â Â Â Â left: 0; Â Â Â Â Â Â Â Â top:0; Â Â Â Â } }
- Add a JavaScript file...