php - OpenCart : Extract Orders Details in Database -


i know can extract sales order data in opencart database, in table shop_order , shop_order_product.

is possible differentiate user creates sales order?

i don't think there's option identify admin user created order. may need code yourself. below steps may you.

  1. add 2 new fields created_user_id , updated_user_id in order table - default value 0.
  2. update admin/model/sale/order.php insert values fields $this->user->getid(); (addorder , editorder functions ).
  3. add new field user_id in order_history table - default value 0.
  4. update admin/model/sale/order.php insert value field $this->user->getid(); (function: addorderhistory).

you can these directly modifying files or using vqmod. if it's done via vqmod it'll easier make changes during opencart version upgrade. opencart: vqmod tutorial

have nice day!!


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -