php - OpenCart: Generate QR Code After Purchase -
i generate qr code after customer has purchased product. selling tickets music events, idea when customer purchases ticket, generate qr code , save qr code in database. our mobile app run code , check if exists in database.
how can generate qr code after confirmation of purchase?
in opencart, order saved in database before confirmed customer (they called missing orders in case order never confirmed). can see in catalog/controller/checkout/confirm.php
$this->session->data['order_id'] = $this->model_checkout_order->addorder($order_data);
this before purchase has been made. cannot add module in add order.
you can call method in checkout/success.php controller. have sure payment method redirects success or user clicks on return link after he/she completes payment.
another way call method before/after function sending new order email called after customer confirms order.
Comments
Post a Comment