This mod allows your customers to checkout, without creating an account (no password/newsletter).
When allowed in admin, there will be a new box on the login-page for guests.
Guests will not be asked for or see these options:
Password,
Newsletter
Products Notifications
The Create Account Success page
The Account created mail
My Account and Logoff (in header navigation)
Tested to work with osC v 2.2 MS2
It's a re-work of Ian Davidsons contribution 792.
Legend: 
Download

Report
As we all know when a guest chooses to create a guest account a real account is created for that guest. Up until now an admin would have had to go into the customer list often to purge it of guest accounts so it doesn't fill up and so that the purchaser doesn't have to have a different email address to order something again (or they would get an error that the account already exists if it hasn't been deleted yet).
This problem has been plaguing me for a while now but I finally decided to fix it.
--BACKUP BACKUP--
In this download you will find two files.
LOGOFF.PHP
CHECKOUT_SUCCESS.PHP
Simply replace your existing copies with the included or use a comparison program to make necessary changes.
Thanks. Enjoy.
This small change makes it so that your customers are never asked to choose between creating an account or not, and assumes your visitors want to use Guest Account.
The download is empty.
After installing the Guest Account mod, change line 20 in 'checkout_shipping.php' from this:
tep_redirect(tep_href_link(FILENAME_LOGIN, 'origin=' . FILENAME_CHECKOUT_SHIPPING, 'SSL'));
to this:
//Assumes visitor wants to use guest account
tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest_account=true', 'SSL'));
Along with hiding any of the 'member login' or 'account' links, this effectively disables the entire osCommerce account system, which takes away customers' burden of having to fill in a password for no reason and makes your site more straightforward.
If you edited a guest customer in the admin area and this customer's email address already exists in another customer record, you cannot successfully save the guest customer until you change the email address to something unique.
Small change to the query on line 143 of /admin/customers.php fixes this problem:
//guest account
$check_email = tep_db_query("select customers_email_address from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($customers_email_address) . "' and customers_id != '" . (int)$customers_id . "' AND guest_flag!=1");
. not full package
. only corrected file
sorry the last update was mixed with the regular customers update [http://www.oscommerce.com/community/contributions,2937]
this one is now clean install, only with Guest Account.
you need to install guest account 2.2 first
ater that you can install this update
uptadte showes you more comfortable who is guest and who not
It's a shame that there is no description on HOW to install this contribution on an editied shop.
Installation is one "really" possible on a "clean setup".
Shame.....would have loved to have had the full installion detailled out so minor alterations can also be done personally.
Do you have this installation in "txt form"?
Would be cool.
Regards
Chris
PS: Contrib is the same as below "Small...."
makes guest-accounts better visuable in the admin
addes "@@" infront of the names when account is gest
changed files catalog/admin/customers.php around line 831
see file for changes
mach gast bestellunge im adminbereich besser sicht bar
vor jeden namen kommt "@@" wenn es eine gastbestellung war
geänderte datei catalog/admin/customers.php
ca. in zeile 831
die änderung steht in der datei
once you have installed guest account 2.2 if you wish to enable returning Guest go to the login.php and change
from
// Check if email exists
$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
if (!tep_db_num_rows($check_customer_query)) {
$error = true;
} else {
$check_customer = tep_db_fetch_array($check_customer_query);
// Check that password is good
if (!tep_validate_password($password, $check_customer['customers_password'])) {
$error = true;
} else {
if (SESSION_RECREATE == 'True') {
tep_session_recreate();
}
to
// Check if email exists
$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, guest_flag from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
if (!tep_db_num_rows($check_customer_query)) {
$error = true;
} else {
$check_customer = tep_db_fetch_array($check_customer_query);
// Check that password is good
if ((!tep_validate_password($password, $check_customer['customers_password'])) && ($check_customer['guest_flag']== '0')) {
$error = true;
} else {
if (SESSION_RECREATE == 'True') {
tep_session_recreate();
}
your guests can now relogin for more purchases
- 2.1a had error in catalog/login.php - Replaced with v. 2.1
- 2.1a missing lines in /catalog/includes/languages/english/login.php - Merged with 2.1
- Added sql file + Updated instructions
- Updated instructions because all changed code wasn't marked with // guest account tag
Third time lucky.
Forgot the changed login.php
Added a missing instruction in the readme.txt
Added an extra functionality, so the guest option will only show, when checking out from the shopping cart.
Bugs, suggestions or whatever can be reported here:
http://forums.oscommerce.com/viewtopic.php?t=57987
This mod allows your customers to checkout, without creating an account (no password/newsletter).
When allowed in admin, there will be a new box on the login-page for guests.
Guests will not be asked for or see these options:
Password,
Newsletter
Products Notifications
The Create Account Success page
The Account created mail
My Account and Logoff (in header navigation)
Tested to work with osC v 2.2 MS2
It's a re-work of Ian Davidsons contribution 792.