Re: COWOA v2.6beta on GitHub

Originally Posted by
jeking
A client wants to force all customers to use COWOA, removing the login and create account options. This means the login page is no longer needed and we can skip right to checkout. I thought I could do this by changing the filename of
define('FILENAME_LOGIN', 'login');
to
define('FILENAME_LOGIN', 'no_account');
Worked as expected on the cart side, but then also redirected the admin login to a non-existant no_account page. Is there a way to accomplish this while not breaking the admin login?
There is a better way of doing this without allowing a user to bypass your define... by hand typing in 'main_page=login' or 'create_account' so on, bypassing the no_account page. to do it right, you need a observer to trap the account and login creation pages.
thought I had a switch setup for this... most of not included it... once I can get GIT to work, I'll pass the changes along..
Adding the switch to the login section of the header and setting up the observer... which will be used again later on to setup free downloads... the ever ghosting checkout by email only one.
Reason for the observer... to catch the bypass hack attempts! Using a switch to turn on/off the account system without modifying many different pages.
Dave
Always forward thinking... Lost my mind!
Bookmarks