duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/simple-commerce
Other
143 stars 34 forks source link

Undefined method error in UserCustomerRepository #1078

Closed jacksleight closed 1 month ago

jacksleight commented 1 month ago

Description

When submitting the checkout details form we're getting this error:

Call to undefined method Statamic\Auth\Eloquent\User::merge()
DuncanMcClean\SimpleCommerce\Customers\UserCustomerRepository : 102

When storing customers as users.

Steps to reproduce

Store customers as users, try to submit the checkout details form.

Environment

SC 7.2.0

duncanmcclean commented 1 month ago

It seems like Statamic's Eloquent User class is missing the ->merge() method which exists on the file users implementation.

I've opened a PR on the Statamic side to add it: statamic/cms#10192

duncanmcclean commented 1 month ago

PR has been merged, will be fixed in the next version of Statamic.