Jump to content

customize error popup


redtick

Recommended Posts

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

1zY0BjrmL6MmkUuPP1ngahdE9Qwz1y_thumb.jpg

 

i get this alert 

1BPyxrurW5mdMQQWiFFPLgNFOepDrs_thumb.jpg

 

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 by redtick (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...