AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: Sam_78 on January 11, 2017, 11:55:51 AM
-
Hello everyone,
I am making some changes-code-wise in AbanteCart cart and need help
It is basically for a show where user can make there own order but I have an issue there
As soon as order is confirmed I want to print an invoice right then for customer and also mail him/her.. Can someone tell me where to get the code for printing functionality, or is there any extension available?
I see here I need to get the most recent order_number everytime to print it
Any help is highly appreciated!!
I am able to make an order successfully and can print the invoice from admin panel but I want that functionality on storefront where I have a button "paynow"
-
you should to use hooks for that.
for ex
public function afterModelCheckoutOrder_confirm(){
$that = $this->baseObject;
//do here what you want. Use $that as $this inside generic controller scope.
}
For quick test paste this code into some enabled extension such as public_html/extensions/banner_manager/core/custom_block_hook.php