This is the documentation for LemonStand V1, which has been discontinued. You can learn more and upgrade your store here.

LemonStand Version 1 Has Been Discontinued

This documentation is for LemonStand Version 1. LemonStand is now offered as a cloud-based eCommerce platform.
You can try the new LemonStand and learn about upgrading here.

Programming Pages

Programming LemonStand pages is a simple process due to the API and programming techniques built into the system. The main component of the LemonStand page programming API is the Action. Another important component is the LemonStand AJAX implementation.

  • action - is a PHP code written by you or provided by LemonStand modules, executed before a page is displayed. Actions are used for preparing data to be displayed on a page and for processing page forms.
  • AJAX - allows you to process forms and update page content without reloading the whole page.

You can use HTML and PHP code in your pages. Using PHP code you can access the $this variable which refers to the controller object (Cms_Controller class variable). The controller object has useful fields and method, including the $page field, which gives you all information about a current page, including its title and meta data (keywords and description).

See also:

Next: Actions
Previous: Using File-Based Templates
Return to LemonStand Back-End