Forums
Forums / Plugin: WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets / Adding Multiple Inventory
(@peterose)
3 years, 4 months ago
How to add 2 or more stock quantities from different location when importing or updating a product using WP All Import?
(@wpallimport)
Hi @peterose,
Are you importing 1 stock feed that has 2 stock values that you want to add together? If so, you can use the built-in MATH function, e.g.:
[MATH({stock1[1]},"+",{stock2[1]})]
If you’re importing 2 feeds and you need the second feed to add to the existing stock quantity, you’d have to write custom code that uses our API to do it: https://www.wpallimport.com/documentation/action-reference/. There’s an example snippet that you can modify as needed here: https://gist.github.com/039197cd63c3cb009a3cc3e0b2ea75f8.
The topic ‘Adding Multiple Inventory’ is closed to new replies.