1b.app
Link copied -

How is the price of a product added to an order with WordPress?

Here are examples of orders
http://cabinet.b2bframes.com/admin/customorder/order/39827/edit/
- the product got into the box at the price from the product card, taking into account the discount
https://ebay.ossaframes.com/wp-admin/post.php?post=9452&action=edit
- on the website of the product, the price is different
Question - from where should the price be pulled up according to the logic of the order import action? If not from the site, can it be improved so that the price is drawn from the site?
Original question is available on version: ru

Answers:

If variation - the price is taken from the OneBox product card (filter markup, if any).
If you have a price for the variation in postmeta.meta_key = _line_subtotal - we can make a setting so that the price is taken from wordpress from the specified value - this setting will take 1 hour of refinement
29.03.2021, 09:52
Original comment available on version: ru

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

Tyndyk Maxim Vadimovich wrote:
If you have a price for the variation in postmeta.meta_key = _line_subtotal - we can make a setting so that the price is taken from wordpress from the specified value - this setting will take 1 hour of refinement

Checked on another base. Like there is, then there will be
First
SELECT * FROM `wpat_woocommerce_order_items` WHERE `order_id` = '230627'
Then
SELECT * FROM `wpat_woocommerce_order_itemmeta` WHERE `order_item_id` = '5710'
29.03.2021, 18:11
Original comment available on version: ru


Tyndyk Maxim Vadimovich wrote:
If variation - the price is taken from the OneBox product card (filter markup, if any).
If you have a price for the variation in postmeta.meta_key = _line_subtotal - we can make a setting so that the price is taken from wordpress from the specified value - this setting will take 1 hour of refinement

Let's start, we need it, so that the price is raised by the promotion on the site.
We have 4 more paid years.
02.04.2021, 17:23
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
gun, working
13.04.2021, 12:45
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