Page Templates:Login Form
From Whirlwind eCommerce Wiki
Revision as of 17:26, 8 February 2009 by 71.163.185.8 (Talk) (New page: {{Page Template Managers Shortcuts}} == Create log in template == The log in template Below is an example shopping cart template: <source lang="php"> // kick if logged in // recommended ...)
|
Create log in template
The log in template Below is an example shopping cart template:
// kick if logged in // recommended to place in 'pre process' code of template - no reason to waste processing power if we just gonna kick to home. eV::authorizeIsLoggedOut('index.php?message=You cannot create an account while logged in'); // here is the global message // if user fails to log in, this message will contain the failure notification if(!empty($message)) echo "<p>" . $message . "</p>";
Create shopping cart page
- assign the new cart template to this page
- check the 'hide this page from in-site searches'
- post this page and take note of the page Id
Set new page as shopping cart
- In settings > eCommerce tab
- enter the pageId for the page just created into the "cart page id" field.
- post changes to settings