Replace hardcoded store ID = 1 with either input argument or detected default store ID.

@tim-bezhashvyly gotcha.  Ya now that I think of it I hadn't ever tested that the quote object was assigned to the order - as you can tell I threw this together very quickly for a pretty specific test case for myself :)

I'll probably finish merging this on monday!