I use the integration of woo-retailcrm-mysklad , goods are synchronized by id ( Woocommerce ), unloaded from Woocommerce via YML .

The challenge was to bring the goods in my warehouse and upload to the site from Woocommerce through the API.

Is it possible to create a product in Woocommerce with a given id (set_id()) or is it necessary to switch to the use of articles, that is, to synchronize products by articles?

    1 answer 1

    Product in WooCommerce is a custom WordPress post type product. All posts in WordPress must have a unique id. Including pages, notes, menus, etc.

    You cannot be sure that the product id is not already occupied by another object in WordPress. Therefore, synchronization by id is an unsolvable task.

    For goods, sku is specifically entered as the product identifier.