1b.app
Link copied -

Purchase price import from cs-cart

There was such a question https://crm-onebox.com/ru/support/online-stores/10063-zakupka-tovara-tyanetsya-s...
Estimated in 1 hour
But there is also the functionality of the markup on the filter at the purchase price

We are already taking the markup on the filter at the sale price, we need to make sure that the purchase price is loaded and updated + the markup on the purchase price
The screenshot showed where this parameter is in api
Original question is available on version: ru

Answers:

Do you need to write in the same form with cost_price or add it to the existing purchase price?
Any of the options - revision 1h
16.08.2021, 17:02
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
Do you need to write in the same form with cost_price or add it to the existing purchase price?

I did not understand the question?
let's skip my previous question for the time being, it's 1 hour, we decided.
I need to get the purchase price by options, the cost_price field and add it to the markup on the incoming filter price
16.08.2021, 17:25
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
I also checked this markup, it stretches only if you fill it out through the process options, and if you fill in the additional field of the process product associated with the filter, then the purchase price does not change, only the sale price changes.

In order to solve the problem, we need:
1) Transfer the purchase price - discussed here https://crm-onebox.com/ru/support/online-stores/10063-zakupka-tovara-tyanetsya-s...
2) Pass the cost_price value of the https://take.ms/RH0l1 option to the markup on the incoming price of the filter https://take.ms/IvGNb
This is done at the request https://stylesalon.com.ua/api/2.0/options/?product_id=108785 Did I understand correctly how the extra charge for the filter is now taken?
3) Make sure that the markup on the input cost is also applied when filling in the additional field of the product of the process associated with the filter
- Option 1 - fill in process options when importing an order from cs-cart
- Option 2 - change the purchase when changing the additional field associated with the filter
17.08.2021, 12:27
Original comment available on version: ru


1h

2) Pass the cost_price value of the https://take.ms/RH0l1 option to the markup on the incoming price of the filter https://take.ms/IvGNb
This is done at the request https://stylesalon.com.ua/api/2.0/options/?product_id=108785 Did I understand correctly how the extra charge for the filter is now taken?

yes, 1 hour
the previous question was "record the received cost_price value in the purchase margin" or "record the difference between the received cost_price value and the purchase price in the purchase margin"
If the resulting purchase is stored in this parameter, then it is necessary to write down the difference (because then it is summed up by options when calculating the marginality)

3) Make sure that the markup on the input cost is also applied when filling in the additional field of the product of the process associated with the filter
- Option 1 - fill in process options when importing an order from cs-cart
- Option 2 - change the purchase when changing the additional field associated with the filter

and you can’t get a double deduction when calculating marginality?
17.08.2021, 15:14
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
2) Pass the cost_price value of the https://take.ms/RH0l1 option to the markup on the incoming price of the filter https://take.ms/IvGNb
This is done at the request https://stylesalon.com.ua/api/2.0/options/?product_id=108785 Did I understand correctly how the extra charge for the filter is now taken?
yes, 1 hour
the previous question was "record the received cost_price value in the purchase margin" or "record the difference between the received cost_price value and the purchase price in the purchase margin"
If the resulting purchase is stored in this parameter, then it is necessary to write down the difference (because then it is summed up by options when calculating the marginality)

ahh...
you need to write what is there, this added value works for them in the same way as for us

Tyndyk Maxim Vadimovich
OneBox production wrote:
3) Make sure that the markup on the input cost is also applied when filling in the additional field of the product of the process associated with the filter
- Option 1 - fill in process options when importing an order from cs-cart
- Option 2 - change the purchase when changing the additional field associated with the filter
and you can’t get a double deduction when calculating marginality?

here is the order https://crm.stylesalon.com.ua/admin/customorder/order/27407/edit/
no option - this is how it came from the site, if I fill it in manually, it will calculate correctly
To be more universal, it would be convenient to change the value of the additional product field and have the price change, but if this is too heavy, then you can simply fill in the options so that the correct markup on the filter is applied. It is only VERY important to take into account that now the sale price of the goods is taken from the order on the site, that is, you must first fill in the options and update the price, and then still take the sale price from the order on the site
17.08.2021, 17:28
Original comment available on version: ru


there is no option - it came from the site like this, if I manually fill it out, it will calculate correctly

the situation is that when choosing options, prices are calculated and updated immediately in the pop-up

then you can simply fill in the options so that the correct markup on the filter is applied.

in fact, it is necessary to implement not only the filling of options (and for them, more storage settings are needed) - but also to do a parallel calculation of prices

It is only VERY important to take into account that now the sale price of the goods is taken from the order on the site, that is, you must first fill in the options and update the price, and then still take the sale price from the order on the site

it would be great if the API gave out the purchase price, but judging by the documentation, this is not

To be more universal, it would be convenient to change the value of the additional field of the product and the price to change

Well, can we then make an action that will take the product, additional fields associated with filters - and sum up the purchase price and the markup on the filters?
Who needs it - let them use it as a procedure / at the stage, and who doesn't need it - don't use it)
If it fits, this action will take about 3 hours.
18.08.2021, 14:36
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
it would be great if the API gave out the purchase price, but judging by the documentation, this is not

actually gives out https://take.ms/8gCkI - this is the purchase, let's better take it and not suffer
18.08.2021, 15:37
Original comment available on version: ru


actually gives out https://take.ms/8gCkI - this is the purchase, let's better take it and not suffer

I didn't see it in the documentation
Well, add it to the import of orders - 1h
18.08.2021, 15:49
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
check
18.08.2021, 16:23
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
We do all 3 steps
1) Transfer the purchase price - discussed here https://crm-onebox.com/ru/support/online-stores/10063-zakupka-tovara-tyanetsya-s...
2) Pass the cost_price value of the https://take.ms/RH0l1 option to the markup on the incoming price of the filter https://take.ms/IvGNb
This is done at the request https://stylesalon.com.ua/api/2.0/options/?product_id=108785 Did I understand correctly how the extra charge for the filter is now taken?
3) For the "Import processes from CS-Cart" action, modify the import of the purchase price of the process product from the cost_price field https://take.ms/8gCkI
18.08.2021, 16:27
Original comment available on version: ru

1. added setting by field key to action
2. added by default
3. added setting to action
19.08.2021, 17:34
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
1. added setting by field key to action

something went wrong - instead of buying, the price of the goods was simply reset

https://crm.stylesalon.com.ua/admin/shop/products/1657/edit/
19.08.2021, 18:10
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
2. added by default

Not poured
https://crm.stylesalon.com.ua/admin/shop/products/1657/filters/
19.08.2021, 18:12
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
3. added setting to action

it works clearly
19.08.2021, 18:20
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Sukhanitsky Andrey
integrator wrote:

Tyndyk Maxim Vadimovich
OneBox production wrote:
1. added setting by field key to action

something went wrong - instead of buying, the price of the goods was simply reset

https://crm.stylesalon.com.ua/admin/shop/products/1657/edit/

I have removed the setting for now, as the price is not loading correctly
19.08.2021, 18:27
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Sukhanitsky Andrey
integrator wrote:

Sukhanitsky Andrey
integrator wrote:

Tyndyk Maxim Vadimovich
OneBox production wrote:
1. added setting by field key to action

something went wrong - instead of buying, the price of the goods was simply reset

https://crm.stylesalon.com.ua/admin/shop/products/1657/edit/

I have removed the setting for now, as the price is not loading correctly

It doesn't matter if the field is specified, it still loads 0
20.08.2021, 12:05
Original comment available on version: ru


something went wrong - instead of buying, the price of the goods was simply reset to zero

+

added to tick)
20.08.2021, 13:16
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:

something went wrong - instead of buying, the price of the goods was simply reset to zero

+

added to tick)

seems to work, now I'll try to update a few more products
20.08.2021, 13:37
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
As far as I can see it works great.
20.08.2021, 13:56
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