-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scout breaks with craft commerce v3 #178
Comments
Did you find a fix for this? |
@brambeekman for me it was adding the following code in the beginnen of the scout.php config file.
But I couldn't figure out what was causing the error.. |
Instantiating the Commerce plugin before |
Fixed in today's release! |
Versions:
Issue:
Scout doesn't work with commerce after updating to commerce v3, so it appears.
When I try to import craft commerce products into Algolia with this code:
It returns this error:
FYI: the whole site throws this error.
For some reason the function
Plugin::getInstance()
inside the craft\commerce\elements\Product class behaviors function returns null.Is it possible that the ScoutIndex::index function is called before the craft commerce product class is loaded or something?
The text was updated successfully, but these errors were encountered: