duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/addons/duncanmcclean/simple-commerce
Other
146 stars 40 forks source link

[6.x] Use authenticated user as customer #961

Closed duncanmcclean closed 9 months ago

duncanmcclean commented 9 months ago

This PR implements a change in behaviour when the following conditions are true:

Until now, in this situation, nothing happened. You would have to manually set the customer to be the current user.

However, with this PR, you'll no longer have to do that. Simple Commerce will pick up the fact the customer should be the currently logged in user & update the order like so whenever you submit any of the {{ sc:cart }} or {{ sc:checkout }} forms.

Related: https://github.com/duncanmcclean/simple-commerce/discussions/946

github-actions[bot] commented 7 months ago

Released as part of v6.0.0.