Nevermind, I solved the problem deactivating a lightbox plugin from previous template. BTW I still have an issue about the add to cart button being on the right and not below the discount table (see link posted above). It display correctly only on mobile view but not on desktop view.