Capturing product sales history

Capturing product sales history

This sounds like a really basic question, but I cannot find how to capture which products a customer has purchased onto the customer record..
Which module might help with this? Is there a way to link with a woocommerce shop and auto-update?