Internal Article - Woo commerce stock import functionality
Problem: Import from channels functionality for WooCommerce
Solution: This function acts as a standard stock importer. It takes the relevant information from WooCommerce and imports it into Khaos. Also, if an stock code already exisist under the same code, it will update the information in Khaos. These are the fields it will import/update.
"STOCK_CODE", "SHORT_DESC", "LONG_DESC", "SELL_PRICE", "WEBSELL_PRICE", "STOCK_CONTROLLED","AVERAGE_WEIGHT", "TAX_RATE", "STOCK_TYPE1",
"STOCK_TYPE2","SCS_SK1", "SCS_SK2", "SCS_SK3", "SCS_SK4", "SCS_CAPTION1", "SCS_CAPTION2", "SCS_CAPTION3", "SCS_CAPTION4","SCS_DESC1", "SCS_DESC2",
"SCS_DESC3", "SCS_DESC4", "SCS_TEMPLATE"
Notes: To this functionality: Move with specific - if the item is none stock controlled in Khaos Control Cloud but its manage stock enabled in WooCommerce, we will force update the item to be stock controlled. The stock controlled and manage stock is the same function so they need to match between systems.