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/11/06 04:46]
A User Not Logged in
how_to_create_an_order_module [2021/07/15 00:07] (current)
info@litecart.net [actions() (Known as Order Action modules in LiteCart 1.x)]
Line 48: Line 48:
     public function uninstall() {}     public function uninstall() {}
   }   }
-?>+
 </file> </file>
-==== actions() (Known as Order Action modules in LiteCart 1.x) ====+==== actions() ====
  
 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 80: Line 80:
          
       foreach($order_ids as $order_id) {       foreach($order_ids as $order_id) {
-        $order = new ctrl_order($order_id);+        $order = new ent_order($order_id);
         // Custom code to do whatever         // Custom code to do whatever
       }       }
Line 125: Line 125:
 </file> </file>
  
-==== success() (Known as Order Success modules in LiteCart 1.x) ====+==== success() ====
  
 The success() method can output HTML on the order success page e.g. a sales tracker pixel or a receipt. The success() method can output HTML on the order success page e.g. a sales tracker pixel or a receipt.
how_to_create_an_order_module.1541476009.txt.gz ยท Last modified: 2018/11/06 04:46 by A User Not Logged in