My problem is the following, a user (buyer) should not be able to do anything in the store without having a session started, so how is it possible that with prestashop make the first view (mandatory) is the Start session?
My problem is the following, a user (buyer) should not be able to do anything in the store without having a session started, so how is it possible that with prestashop make the first view (mandatory) is the Start session?
FrontController: (create an override)
if ($ this- > auth &! $ this- > context- > customer- > isLogged ($ this- > guestAllowed)) { Tools :: redirect ('index.php? Controller = authentication'. ($ This- > authRedirection? '& back ='. $ This- > authRedirection: '')); }
for
if (! $ this- > context-> customer-> isLogged () & & $ this- > php_self! = 'authentication' & & amp; $ this- > php_self! = ' password ') { Tools :: redirect ('index.php? Controller = authentication? Back = my-account'); }