Hello iam trying to find ins and outs of zen cart 1.39 and 1.5, for now iam working on second login page on 1.39 it should be responsive, without sidebar, navbar etc and after successful login redirect to custom page(maybe ez page), so I have made some changes in
index.php
here i have made
\includes\templates\template_default\common\html_header_custom.php --- this is a new file which i made, uses bootstrap
here i have made something like if referer promotion then (some link which you get from mail promo) open second login and dont load (require) sidebar templates and navbar and that works great
(i think here should not be any security issues)
\includes\templates\template_default\common\html_header_custom.php
this is a new file and here is the template for that second login form which is loaded from main index file when the user comes from custom link
that is in bootstrap blahh blahh....
\includes\modules\pages\login\header_php.php
now this is where it all gets awesome
first i catch referer if referer custom link and already loged in redirect to default page (or ez page - this is ok)
if referer custom link and login success redirect again to ez page
if referer custom link and errror redirect to custom page login and thats fine two
but i couldnt use messageStack (maybe i didnt included required files but no matter i have only two error the form security token and user not
found or pass not valid i have made array with does to errors and if set then show (with get from url),
before this $zco_notifier->notify('NOTIFY_LOGIN_FAILURE');
i have added if referer (custom link redirect to index page with custom params so i can catch them and show the second custom login page again with error msgs.
now my question is did anyone had anything like this or something, i would love to make this work for now with no security flaws and maybe latter make some modules.
Thank you
Bookmarks