before_process() and after_process()

There are empty functions in modules/order_total/.. like:

public function before_process() {
}

and

public function after_process() {
}

I think this is not triggering at any time :/ I try to create simple discount codes module based on flat files (all settings are stored in litecart - i need only to count used codes and save it to file after process).

I am most certain they are not triggering, as they are methods in payment and shipping modules but not order total. Thank you we will have this cleaned up.

Build an order success module for operations on a successful order.

Hmm... When modules from there are executed? After click ""Order and pay"" or when user pay for the order (i.e. Paypal)?
I think discount code should be marked as used immediately when customer click ""Order and pay"" button. What about order_action? I don't have any module there and i don't know how this should look like ...

You need one order_total module for the discount. and one order_success module for logging the usage.

order_action is for action buttons regarding the Order list in admin.

Or, everything done already for you is here:
http://litecart.net/addons/addon?addon_id=35

Ok - i found my solution for this :)

...but i'm intrested for this order_action modules - if I understood correctly this modules could be used i.e. to generate invoices in the external system!? Is there somewhere an example for order_action?

Here is an example of an order action module:

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub