1b.app
Link copied -

Rate the finalization by opencart

https://farfor.crm-onebox.com/
The client places an order on the opencart website, the price is 125, there is a discount, after placing the order the price becomes 100. When we upload the order to CPM, the discount is not loaded, the price of the product is just 100. The discount is not recorded in the database, so another solution is needed, like load discount:
As a result, we need to do the following when parsing the products in the order:
1) Take the total and qunatity columns from the oc_order_product table
2) Take from the table oc_product by product_id parse the value of the price column
3) do the calculation [% discount] = 1-total(oc_order_product)/price(oc_product)/qunatity(oc_order_product)
And load the correct price, discount, quantity and exchange rate into the order (orders in euros)
Sale price = price(oc_product)
discount % = [discount %]
and parse the order rate from currency_value(oc_order)
Need an evaluation
Original question is available on version: ru https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор

Answers:


Korop Vladislav Pavlovich
KTS wrote:
Looked in the database discount is not recorded

And in the admin panel itself, the discount is also not displayed? What is it like?
07.12.2021, 18:13
Original comment available on version: ru


anonymous duck
OneBox production wrote:

Korop Vladislav Pavlovich
KTS wrote:
Looked in the database discount is not recorded

And in the admin panel itself, the discount is also not displayed? What is it like?

We looked in the database, the discount is 0 everywhere, they immediately write the discounted price, so we need to calculate it
07.12.2021, 18:14
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru

Can it be improved as described?
08.12.2021, 16:25
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru


Korop Vladislav Pavlovich
KTS wrote:
Can it be improved as described?
09.12.2021, 13:35
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru

Yes, you can. It will take 4 hours. Include access to the database + phpmyadmin and a link to the order in opencart with an example in the task
09.12.2021, 14:26
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