M
M
mbhusty2019-04-29 10:50:41
Data synchronization
mbhusty, 2019-04-29 10:50:41

Uploading discounts from 1s to the bitrix website. How?

I literally broke my whole head, help me out.
The situation is the following. There is 1c which is synchronized with the site on bitrix. Coming goods, properties, prices, etc.
The client needed to implement something similar to the discount functionality so that changes would be made in 1s (for example, a certain discount was applied to a product or group) and after synchronization, it was the discounted price that came to the site.
Using discounts only on the site (using CMS) is not suitable for the client. It is also not possible to add another type of price in 1s, because, according to them, the retail price is tied to customer contracts, and another type of price cannot be used.
And I'm trying to understand, either we are looking in the wrong direction, or the client has confused me and himself)
They haven’t been to 1C yet, I can’t say for sure how synchronization is organized at the moment.
How is it possible to solve such things in theory?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Julia Bedrosova, 2019-04-29
@Bedrosova

Add another price type in 1s
- that's the only way they're doing it now. It can't be impossible - I would push him.
Previously, there was another way: bedrosova.blogspot.com/2013/04/1-1_22.html, but now, after the discount mechanism on the Bitrix side has been redesigned, its use is too resource-intensive in terms of server load.

A
Alexey Bespalov, 2019-04-29
@FreeArcher

The problem is that discounts depend on the client, the amount of orders, combinations of goods, i.e. they are personalized. How do you submit it to the site?
If the price of the product just went down, then this is a promotion, not a discount.
As far as I know, discounts with a typical exchange are never uploaded to Bitrix.
Here you can come up with something:
for example, upload the old and new prices, and process it on the site.
or upload discounts as a separate exchange and register in the catalog
or upload the percentage or amount of the discount as a property of the product.

B
Boris Cherepanov, 2019-04-29
@xakplant

Transfer the discount from 1C to the user in a custom field.
During an order, for example, on the OnSaleComponentOrderCreated event, you can get user data, including their discount. And then change the price of the order
Here is a link to the description of events https://dev.1c-bitrix.ru/api_d7/bitrix/sale/events
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question