Community Add-Ons
| Maintainers: | RMaia |
Create_account.php file with combined login box
for osCommerce Online Merchant v2.2
For some shops, it's more interesting to reduce as much as possible the number of clicks a customer has to make before confirming the order. Also, sometimes the stock Login/Account process of osCommerce can be pretty confusing. So this is an attempt at making this process smoother.
Here's the general idea of the workings after this contribution is implemented. If the customer tries to checkout without logging in, he'll be redirected to the "Create Account" page. But on top of the form where he would enter his personal data (to create an account, or profile if you prefer :-) the login box will be displayed, so if he already has an account he can login straightaway. If he doesn't have an account, the he can enter the data in the appropriate form. When either the "login" button or "create account" button is pressed, he's automatically redirected to the initial checkout page.
But what if the customer arrived at the create_account.php page from a direct link (i.e., he wasn't redirected from the shopping cart, he actually clicked on the "Create Account" link)? Then it wouldn't make sense to have him redirected to the checkout page after registering or seeing the login box displayed. So, in this contribution the login box and checkout redirection only happens if the person came to the create_account.php automatically redirected from the shopping cart.
This isn't a simple "code hack", but isn't complex either. To install it's just a matter of modifying a few files, and there are no SQL queries to be performed.
The package contains only the step-by-step instructions to install, in a nicely formatted HTML page.
No ready to use moded files are included. I did this because my store is heavily moded, so including them would only confuse people further.
Modified the installation instructions. Text formatting changes and removed one instruction that was breaking the table in create_account.php.
