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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -