Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Инверсия обработки количества товаров


Recommended Posts

Добрый день, кто знает в каком файле находится код который отвечает уменьшение количества товаров после того как была обработана заявка ? 

Мн нужно изменить чтоб после обработки заявки не уменьшалось количество товаров, наоборот пополнялось 

Например в наличии на сайте 5 картин, после обработки заявки на 2 единицы, вместо того чтоб осталось 3(-2) должно быть 7(+2)

 

Link to comment
Share on other sites


21.01.2023 в 10:55, PaulKravchenko сказал:

catalog/model/checkout/order.php

 

Замінити quantity -  на quantity + 

спс сейчас попробуем

Link to comment
Share on other sites


21.01.2023 в 10:55, PaulKravchenko сказал:

catalog/model/checkout/order.php

 

Замінити quantity -  на quantity + 

нету такого кода увы, везде после quantity идет = и php код

 

 

 

$this->db->query("UPDATE `" . DB_PREFIX . "product` SET `quantity` = (`quantity` - " . (int)$order_product['quantity'] . ") WHERE `product_id` = '" . (int)$order_product['product_id'] . "' AND `subtract` = '1'");

 

 

quantity` - " вы про этот минус ? на всех строках поставить чтоб был + ? 

Edited by arromanus
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.