1b.app
Link copied -

Searching for a product by article when creating a Wordpress process

Registered in the automatic action "WordPress / Import orders" search for goods by article when adding to the process, but the box does not search, but adds new products. Example http://box.smart-gadget.club/admin/customorder/order/13345/edit/
Moreover, he prescribes the price in the color field.
I attach the screenshot of the settings
Original question is available on version: ru

Answers:

This product has _variation_id=308 in your database
I looked in the database in the wp_postmeta table for the data on this record - there the _sku value is empty.
If there is no article, then there is nothing to look for variations by article.
26.02.2021, 14:40
Original comment available on version: ru

I checked, when the product does not have variations, then it recognizes correctly, but if it is a variation, then recognition does not occur. In the example above, the variation article is indeed not filled in, only the general one.
Here is an example with a filled article in variation http://box.smart-gadget.club/admin/customorder/order/13379/edit/
26.02.2021, 15:11
Original comment available on version: ru


Dmitry wrote:
Here is an example with a filled article in variation http://box.smart-gadget.club/admin/customorder/order/13379/edit/

well, duck you have a specific product selected there
if something is wrong - give examples and arguments based on data from wordpress, what product should you have and why
26.02.2021, 15:21
Original comment available on version: ru

Product code in the box - 109. Article in the box - Corband-Pro-black
Article in WordPress - Corband-Pro-black
An order arrives with a new box item, code 556, the article is missing.
What other data is needed?
26.02.2021, 16:45
Original comment available on version: ru

http://box.smart-gadget.club/admin/shop/products/109/edit/
look at how you have the article in the product - with spaces at the beginning / end - that's it and does not find it, because the article does not match
and now the checkbox for searching for variations by article is turned off
01.03.2021, 16:26
Original comment available on version: ru

I did everything as you indicated, thanks, it almost worked =)
http://box.smart-gadget.club/admin/customorder/order/13533/edit/ finds the product code in the box correctly, even pulls up the picture, but the name prescribes such as it is indicated in wordpress, and not in the box. It seems that this does not affect anything, the goods are considered correctly in the warehouse.
Is that how it should be?
03.03.2021, 15:02
Original comment available on version: ru


Is that how it should be?

Yes
03.03.2021, 15:04
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