LemonStand Documentation

shop:orders

The shop:orders action is designed for creating the customer order list page. The action loads a list of a currently logged in customer orders and prepares a corresponding PHP variable. Please read the Creating the Customer Orders page article for examples of the action usage.

Please note that the action requires a logged in customer, so a page, the action is assigned to, must has the Customers Only security mode enabled.

Generated PHP variables

  • $orders – a collection of customer orders. An object of the Db_DataCollection class. Each element in the collection is an object of the Shop_Order class. This variable can be NULL in case if there is no currently logged in customer. Always check the value of the variable before displaying a list of products.

Next: shop:manufacturers
Previous: shop:order
Return to Reference