您如何使用 order_id 以编程方式删除整个订单记录及其在 opencart 系统中的存在
to delete order you should delete it from this tables:
oc_order
oc_order_history
oc_order_option
oc_order_product
oc_order_recurring
oc_order_recurring_transaction
oc_order_shipment
oc_order_status
oc_order_total
oc_order_voucher
you can use this query for each table separate in your model or controller file
$this->db->query("DELETE FROM " . DB_PREFIX . "order WHERE order_id = '" . (int)$order_id . "'");
Or simply using phpMyadmin sql.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.