How to add 'cart' button inside the product modal?


  1. Open the 'js/products/views/modalView.js' file.
  2. Right after the line 12 paste these lines of code like shown in the screenshot.
  3. Open the 'js/products/products.js' file.
  4. Search for the 'showProductDetails' function and after the 'close modal event' paste these lines of JavaScript, like shown in the screenshot.
  5. In the same file search for the 'getLength' function and replace the '#products' scope with the '.shopping-cart' scope like shown in the screenshot.
  6. Add at the end of your CSS files these lines of css.

Last update:
2015-09-24 21:38
Author:
Vlad Sargu
Revision:
1.0
Average rating: 5 (1 Vote)