redtick Posted April 18, 2014 Share Posted April 18, 2014 (edited) Hello; I'm new to prestashop i'm trying to replace an error alert with popup window the error alert exist on category.php page when i add a product to basket without login i get this alert from CartController (the code if (Tools::getValue('ajax') === 'true' && Tools::getValue('add') === '1') { // ajax cart die('{"hasError" : true, "errors" : ["' . Tools::displayError('Please login first .', false) . '"]}'); } so I was trying to create the popup on category.tpl and put visibility:hidden; But how can I manage the popup visibility from CartController !! Edited April 18, 2014 by redtick (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now