reinstall prestashop and edited a lot of modules

add to cart button stopped working, after days of trying to fix it, I
reinstalled prestashop and edited a lot of files