Split Log On And Customer Approval Status Problem
I'm using the Split Panel Login Contribution but I've found that if I set the Customer Approval Status under Configuration > Customer Details to 1 then if a user clicks on the forgot your password link nothing happens - the user can't get to the page where they can fill in their email address to request a new password.
What I want to do is use Zen Cart to Create a club and I want users to login before being able to see any of the pages. I haven't tested the default configuration to see if the problem exists without the Split Login Contribution. I'm hoping someone will have an answer to solve this problem as the original login in page is too much.
Thanks,
AQ
Re: Split Log On And Customer Approval Status Problem
I seem to have solved this difficulty by changing the settings.
I've now got a front page with both the new products information and the categories turned off and Under Configeration > Customer Details I have chosen:
Custom Shop Status - View Shops and Prices 1
Customer Approval Status - Authorization Pending 0
No a user needs to login to see more of the site but if the user has forgotten their password they are still able to follow the Forogt Your Password Link.
AQ
Re: Split Log On And Customer Approval Status Problem
OKAY, so I'm responding to this many moons later.
If you are using 1.3.7 (or earlier), try this:
in the init_customer_auth.php file,
Update line 104 by adding , FILENAME_PASSWORD_FORGOTTEN
Example:
line 99-111 now reads as follows:
PHP Code:
switch (true) {
case (CUSTOMERS_APPROVAL_AUTHORIZATION == '1' and $_SESSION['customer_id'] == ''):
/**
* customer must be logged in to browse
*/
if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_CREATE_ACCOUNT, FILENAME_PASSWORD_FORGOTTEN))) {
if (!isset($_GET['set_session_login'])) {
$_GET['set_session_login'] = 'true';
$_SESSION['navigation']->set_snapshot();
}
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}
break;
reason I'm answering this thread, is because a new client is using 1.3.7 and I had this problem. I believe it does not exist on 1.3.8.
My post may be of use to someone....
[EDIT]
PS: you can also put in Contact Us...
PHP Code:
if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_CREATE_ACCOUNT, FILENAME_PASSWORD_FORGOTTEN, FILENAME_CONTACT_US))) {
Re: Split Log On And Customer Approval Status Problem
Thank you, this is EXACTLY what I needed! I love the ZC forum! :)
Combining
Customer Shop Status > View Shop and Price and
Customer Approval Status - Authorization Pending > set to 1
allows me to block deep links or direct links to categories and products on my web site without customer logon. Yay! :clap:
Another question: is there a way I can add any of the EZ pages to the list of files in the array specified? I have a few other pages that I would like the user to be able to see.
thanks!
-c
Re: Split Log On And Customer Approval Status Problem
Quote:
Originally Posted by
cranbo
Another question: is there a way I can add any of the EZ pages to the list of files in the array specified? I have a few other pages that I would like the user to be able to see
I figured this out! Users can see EZ pages when Authorization Pending is set to 1 IF you change the code to:
PHP Code:
if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_CREATE_ACCOUNT, FILENAME_PASSWORD_FORGOTTEN, FILENAME_CONTACT_US, 'page'))) {
The string 'page' identifies all EZ pages.
Thx again Schoolboy for leading me down the right track!
:clap: :D
--c
Re: Split Log On And Customer Approval Status Problem
hey! this was exactly what I was looking for!
THis is great :) Thanks!!
But what would the filename for the homepage be? I tried FILENAME_INDEX.. and that did not work...