Issue: Fixed issue when adding variable products to cart.

Hi Chris, 

I tested this a few times...Hopefully I've done this pull request correctly! :) 

Let me know if you have any questions!