I have a WooCommerce webshop with all the products and variations created. I also have external online source where live product stock and prices are stored and refreshed few times a day. I need a loop, a piece of code in my woocommerce which will check against that online source (also few times a day) and update price and stock quantity of each product. In details, one product info which should be retrieved looks like this:
Woo ID is there for product mapping purpose, title is not necessary as it's already populated, stock and discount price are attributes that need to be updated in WooCommerce from this source. Please start your bid with "dimidomlija" so I know you read this properly.