Merge pull request #1929 from cklosowski/release/2.0

Adding ability to look up a list of products a user has purchased
Fixed a typo where the function was referring to the wrong cart items.
Merge pull request #1940 from carldanley/release/2.0

Patch for variable reference problem