- Open the 'js/products/views/modalView.js' file.
- Right after the line 12 paste these lines of code like shown in the screenshot.
- Open the 'js/products/products.js' file.
- Search for the 'showProductDetails' function and after the 'close modal event' paste these lines of JavaScript, like shown in the screenshot.
- In the same file search for the 'getLength' function and replace the '#products' scope with the '.shopping-cart' scope like shown in the screenshot.
- Add at the end of your CSS files these lines of css.
How to add 'cart' button inside the product modal?
- Last update:
- 2015-09-24 21:38
- Author:
- Vlad Sargu
- Revision:
- 1.0