User Tools

Site Tools


how_to_create_an_order_module

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how_to_create_an_order_module [2018/02/27 00:41]
A User Not Logged in [How To Create an Order Module]
how_to_create_an_order_module [2018/11/06 04:46]
A User Not Logged in
Line 50: Line 50:
 ?> ?>
 </file> </file>
-===== actions() (Known as Order Action modules in LiteCart 1.x) =====+==== actions() (Known as Order Action modules in LiteCart 1.x) ====
  
 The action() method can return a set of action buttons on the orders page that triggers certain methods upon click. Simply select orders from the list and click an action button. The action() method can return a set of action buttons on the orders page that triggers certain methods upon click. Simply select orders from the list and click an action button.
Line 114: Line 114:
     }     }
 </file> </file>
 +
 +==== update() ====
 +
 +The update() is an event that is called every time an order is saved.
 +
 +<file|php>
 +    public function update($order) {
 +      // Do something
 +    }
 +</file>
 +
 ==== success() (Known as Order Success modules in LiteCart 1.x) ==== ==== success() (Known as Order Success modules in LiteCart 1.x) ====
  
how_to_create_an_order_module.txt ยท Last modified: 2018/11/06 04:46 by A User Not Logged in