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

时间:2016-10-17 11:24:26

标签: php mysql opencart opencart2.x

当买家订购并找到时:

index.php?route=checkout/success

页。

我想要在另一个数据库和另一个虚拟主机中更新产品数量。

问题:

当买家订购时,什么是文件以及哪个字符串包含更新产品quantity的代码?

1 个答案:

答案 0 :(得分:0)

转到:catalog \ model \ checkout \ order.php

查找 addOrderHistory 功能。 搜索//库存减法

  

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