Page Templates: Your Account

From Whirlwind eCommerce Wiki
Revision as of 22:19, 8 February 2009 by 71.163.185.8 (Talk) (New page: The Your Account page simply provides links for logged-in users to manage their accounts. Links could include: *Edit Account Page *Edit Address Book Page *Order History Page Logout (index....)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The Your Account page simply provides links for logged-in users to manage their accounts. Links could include:

  • Edit Account Page
  • Edit Address Book Page
  • Order History Page

Logout (index.php?fa=USER.logout) The first three above are linked to the account pages you create in the system.

So... The your account page can be a simple template where the links are managed in the copy of page management. Only one 'special' function needs to be in place, eV::authorizeIsLoggedIn. this is so folks cannot access this page without being logged into an account.

The code for a simply "You account" template is as follows:

// kick if logged out // recommended to place in 'pre process' code of template - no reason to waste processing power if we just gonna kick to home.
eV::authorizeIsLoggedIn('index.php?message=You must be logged in to manage your account');
 
echo "$title
<br>$subTitle
<br>$copy";
 
// remember that since the links to access account management pages are static once your create the pages to manage these, they can be managed in the copy WYSIWYG editor in page management.