You could use the Customer Authorization and set to 3 ... :
Customer Approval Status - Authorization Pending
Customer must be Authorized to shop
0= Not required
1= Must be Authorized to Browse
2= May browse but no prices unless Authorized
3= Customer May Browse and May see Prices but Must be Authorized to Buy
It is recommended that Option 2 or 3 be used for the purposes of Spiders
then change the code in the file:
/includes/modules/create_account.php
using your templates and overrides:
/includes/modules/your_template_dir/create_account.php
and change the code to read:
Code:
$sql_data_array = array('customers_firstname' => $firstname,
'customers_lastname' => $lastname,
'customers_email_address' => $email_address,
'customers_nick' => $nick,
'customers_telephone' => $telephone,
'customers_fax' => $fax,
'customers_newsletter' => (int)$newsletter,
'customers_email_format' => $email_format,
'customers_default_address_id' => 0,
'customers_password' => zen_encrypt_password($password),
// 'customers_authorization' => (int)CUSTOMERS_APPROVAL_AUTHORIZATION
'customers_authorization' => 0
);
now you have the Add to Cart buttons and Buy Now buttons make the customer Login/Create an Account to add to cart ... but when they do create an account, instead of making the customer have to wait for approval, customers are automatically set to approved ...
Crafty eh?
Bookmarks