SBarnes wrote:I have a customer who wants to interface Inventory attributes into WooCommerce in 7.2.1 and possibly another to Magento, whilst I can go behind the scenes and add tables for holding id's that WooCommerce creates, I was just wondering how hard it would be to make this happen through some inheritance and implementing of IJiwaCustomFields.
This does not necessarily need to work inside the user interface.
If this can be done what would be the steps?
I don't know about Magento. But in WooCommerce, there are a few different options for mapping attributes - besides the standard WooCommerce fields, you can add categories, tags, and custom attributes. Each method has different trade-offs.
Our first attempt at WooCommerce integration used a "mapping" table and a periodic sync with WooCommerce. This wasn't "real-time enough" for the customer.
So our current integration, instead of a mapping table, uses a custom field in WooCommerce to hold the Jiwa InventoryId for a product, and we have the 5 inventory categories mapped to custom attributes. The sync process happens in real-time using the REST API and WebHooks.
This has been more reliable, apart from the performance problems discussed in another thread, where I believe throttling at the hosting provider has exposed some inefficiencies in our code.
The only problem we've had is that WooCommerce is case-sensitive, so if the customer changes the casing of a category name, it "confuses" things in WooCommerce, including their automated menu, which is driven from inventory categories...
We're hoping to start on our "shopping list" of improvements we want to make on our WooCommerce integration shortly.