1b.app
Link copied -

Import import from Horosopa

How to import an order with a good deal, so that in the BOX there was a reduction in the price of a product that was in the order.
At the same time, we will take away the final variance of the prayer.
That is, if a discount is already applied to the goods in Boxing, then a discount is already available in Boxing, and it is not shown in the reservation that a discount is already applied to all goods.
Yak robiti so schob otrimuvat s good
in Boxing, in what way will the transfer of goods with prices and discounts be?
Original question is available on version: ru

Answers:

As far as I know, the Horoshop API already transmits the final price in the search results.
You can provide an example process - I'll take a look at the API output and maybe we can come up with a solution for you together.
22.02.2021, 14:56
Original comment available on version: ru

So obviously I can.
Axis process https://crm.dobavki.ua/admin/customorder/type/207041/edit/
In the new goods came to Boxing at once with a discount.
In the cabinet

All API documentation Good
https://horoshop.atlassian.net/wiki/spaces/DOCS/pages/25296943
Axis can help us

I think so
22.02.2021, 15:36
Original comment available on version: ru


Taras wrote:
All API documentation Good
https://horoshop.atlassian.net/wiki/spaces/DOCS/pages/25296943
Axis can help us
I think so

As you can see from the documentation - the goods are already transferred with the "final price".
As a solution, I can offer to import a product with your price and calculate the difference between the price in OneBox and the final price - and write this difference into the discount value for the product of the process. If such a solution is suitable, it will take 2 hours of revision.
22.02.2021, 17:05
Original comment available on version: ru

Press no, it won't come
And why can’t you transfer (pick up) with Goodbye with this parameter what I saw on the screenshot?
22.02.2021, 19:42
Original comment available on version: ru

discount_marker - discount marker for a product
PRICE_OLD - Old price / discount for goods
22.02.2021, 19:44
Original comment available on version: ru


Taras wrote:
And why can’t you transfer (pick up) with Goodbye with this parameter what I saw on the screenshot?

And what will this parameter give? How can we understand the size of the discount if the discounted price is already passed in the price parameter?
23.02.2021, 14:28
Original comment available on version: ru

In such a key is not ok
And there are other parameters
discount_percent - Relative discount
discount_value - Discount amount
24.02.2021, 15:30
Original comment available on version: ru


Taras wrote:
discount_percent - Relative discount
discount_value - Discount amount

here is the issuance of API by order (removed data about the client):
array
(
[order_id] => 33775
[user] => 32372
[delivery_name] =>
[delivery_email] =>
[delivery_phone] =>
[delivery_city] =>
[delivery_address] =>
[delivery_type] => Array
(
[id] => 3
[title] => To the New Post Office
)
[delivery_price] => -1
[comment] =>
[payment_type] => Array
(
[id] => 15
[title] => Pay on Delivery
)
[payment_price] => 0
[paid] => 0
[total_default] => 600
[total_sum] => 600
[total_quantity] => 1
[discount_percent] => 0
[discount_value] => 0
[coupon_code] =>
[coupon_percent] => 0
[coupon_discount_value] => 0
[coupon_type] => 0
[stat_status] => 2
[stat_created] => 2021-02-21 18:18:51
[currency] => USD
[order_without_callback] => 1
[products] => array
(
[0]
(
[title] => Anti-Wrinkle Day Cream for All Skin Types with SPF 30 and UVA Protection, Hyaluron-Filler + Elasticity Day SPF 30, Eucerin, 50ml
[article] => EUC-83568
[price] => 600
[quantity] => 1
[discount_marker] => PRICE_OLD
[total_price] => 600
)
)
)
we don’t understand what the price was originally and what the size of the discount is
24.02.2021, 16:00
Original comment available on version: ru

so sorry
stinks don't convey anything
Otrimav vіdpovіd vіd Horoshopa
01.03.2021, 09:09
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