1b.app
Link copied -

Getting an order discount with cs-cart

Made improvements to get discounts from cs-cart https://crm-onebox.com/ru/support/online-stores/8803-dorobka-sinhronizatsii-z-cs...
But now it does not work quite correctly, because if there is a special discount for a product, then it is duplicated in the array of order discounts and it turns out that it is applied twice, since it is indicated for both the product and the order.
Therefore, you need to do:
1) if "bonus": "order_discount" - then apply the discount to the order
2) If "bonus": "discount_on_products" - then do not apply the discount to the order
You can save it to the same setting, as this will fix the work of getting discounts
Original question is available on version: ru

Answers:


2) If "bonus": "discount_on_products" - then do not apply the discount to the order

1h
22.10.2021, 17:04
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
Thank you for rating
22.10.2021, 17:55
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment