20% OFF UNTIL THE END OF THE YEAR Use Code: OFF20 for 20% Off! (excluding customizations and support packages)
How to synchronize product status between Odoo and WooCommerce

How to synchronize product status between Odoo and WooCommerce

Our WooCommerce connector provides a default logic for managing product statuses:

  • Published in WooCommerce: If the product is not archived in Odoo and the “Can be Sold” checkbox is checked.

  • Pending Review in WooCommerce: If the product is not archived in Odoo but the “Can be Sold” checkbox is unchecked.

  • Draft in WooCommerce: If the product is archived in Odoo.

Important: For the initial export, you can force all products to be in “Draft” status in WooCommerce using the “Mark as Inactive on First Export” checkbox in the Products tab. However, this only applies to the first export. Subsequent exports will follow the default logic described above.

Need More Control Over Statuses?

Our connector allows for more flexible status management, but it requires some additional configuration.

  1. Create a Status Selection Field in Odoo:

    • You’ll need a selection field in Odoo to store the WooCommerce product statuses. You can add this using Odoo Studio or by creating a small custom module (recommended).

    • For this example, let’s assume you’ve created a field named “WooCommerce Status.”

image-20240930-095237.png
  1. Deactivate Existing Status Mappings:

    • Go to Configuration → Product Fields Mapping and deactivate the existing mappings for the WooCommerce status field.

image-20240930-095439.png

Important: This guide focuses on managing product statuses, but you can follow similar steps for product variations. Just use the Product Variant model instead of Product Template.

  1. Create New Field Mappings:

    • Go to Configuration → All Products Fields and create a new mapping:

      • API Service: WooCommerce.

      • Odoo Model: Product Template.

      • Odoo Field: Select your newly created “WooCommerce Status” field.

      • Field Name in API: Enter status.

      • Value Converter: Choose “Simple Field.”

image-20240930-100249.png
  1. Activate the Mapping:

    • Go to Configuration → Product Fields Mapping and add a new line for the mapping you just created.

    • Enable the “Send field for updating” or “Receive field on import” checkboxes to manage import and export of status information.

image-20240930-100411.png

Note: Status information will be automatically imported during the initial product import if the “Active” checkbox for import is enabled.

Test and Verify:

  • Trigger a test import or export to confirm that product statuses are synchronized correctly.

Need Help?

If you have any questions or issues, please contact our support team: https://support.ventor.tech/

Related Posts
Leave a Reply

Your email address will not be published.Required fields are marked *