当买家在OpenCart中订购时,更新“数量”产品的代码是什么?

In moment when buyer do order and locate on:

index.php?route=checkout/success

page.

I want update quantity of product in another database and another web hosting.

Question:

What is file and which string has a code with updating quantity of product when buyer do order?

go to : catalog\model\checkout\order.php

Look for addOrderHistory function. search for // Stock subtraction

$order_product_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "order_product WHERE order_id = '" . (int)$order_id . "'");