Difference between revisions of "Page Templates:Functions"

From Whirlwind eCommerce Wiki
Jump to: navigation, search
Line 26: Line 26:
  
 
;Retrieve Order information for perpetual and full shopping carts, checkout stages, order history
 
;Retrieve Order information for perpetual and full shopping carts, checkout stages, order history
*[[functions:orderGetSummary:orderGetSummary]] - returns summerized order information. Useful for perpetual carts.
+
*[[functions:orderGetSummary|orderGetSummary]] - returns summerized order information. Useful for perpetual carts.
  
 
;Retrieve User Content to Build Community (Web 2.0) Pages
 
;Retrieve User Content to Build Community (Web 2.0) Pages

Revision as of 06:31, 3 October 2008

A series of custom functions are created to allow content management to easily access content they require to build the copy in templates:

Quick Output of State/Country Options in a Form Select
Set Variables that Content Managers can use in the WYSIWYG copy editor
  • pageContentAttribsSet - sets multiple variables that can be used by content managers in the page manager form (including the WYSIWYG editor)
  • pageContentAttribSet - sets a single variable that can be used by content managers in the page manager form (including the WYSIWYG editor)
  • pageContentAttribSetStart/pageContentAttribSetEnd - wrapper that the contents of which is set as a single variable that can be used by content managers in the page manager form
Retrieve Page Content to Build Pages
Retrieve Order information for perpetual and full shopping carts, checkout stages, order history
  • orderGetSummary - returns summerized order information. Useful for perpetual carts.
Retrieve User Content to Build Community (Web 2.0) Pages
  • usersGet - retrieve user data from a list of user ids
  • userBlogEntriesGet - retrieve blog entry data belonging to a specific user
  • userFriendsGet - retrieves data for users in a specific user's 'friend list'
  • userWishListGet - retrieves product data for products in a specific user's wish list
  • usersAmbassadorGet - retrieves user data for users that are classified as 'ambassadors'
Retrieve Order Content to Build Cart and Checkout Pages
Set Tracking Functions
User Management Functions
Shortcut Functions that just plain make your job easier
  • redirect - redirects visitors to another page
  • valueArrayFromQuery - returns a single dimension array of values based on the contents of a specific column in all records of a query
Functions used by internal actions, you probably will not use