We are in the process of integrating our platform with Shopify and are seeing some strange behaviour in the dev store we are using to test.
On customer records, we are seeing the total_spent and orders_count field equal to zero for all customers, even if they have orders. It doesn't seem to matter what state the customer or the order is in. On the "Customers" page in our dev store we see the list of customers, but they all have 0 for both fields there too. If I click on a customer, the detail page for that customer correctly shows several orders that the customer has placed.
Is this something that is expected behaviour in a dev store or is there something else I'm missing here?
Your intuition about expected behaviour in a dev store is correct: the total_spent field will only include data for non-test transactions. The orders on your test store have been processed with the bogus gateway which is why they're not contributing to your Revenue and not included in your customers' total_spent field. The same qualification applies for the orders_count field.
Hope this helps!