Save order placement date attribute so that we don't need to call ecommerce again. Also did some refactoring.