Closed mlocati closed 1 year ago
Oh, and there were some V5.8 -> V8 challenges in there as well
I didn't change the logic, everything should work as before.
I simply removed duplicatted code (see for example the two old methods that formatted addresses: now it's done in just 1 place), and optimized everything a bit (for example, using $app->make(User::class)
instead of new User()
)
I know I struggled a bit with this code years ago in terms of handling both customers that are guests, and those that are logged in. And then customers that start as guests, and end up logged in due to a purchase. Not surprised this needed some cleanup!