You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2021. It is now read-only.
Enter any taxon with products into the field and click.
Products will not load as 'supported_currencies' is undefined.
Seems to be related to issue #42 raised by @jsilland. In short, this appears to occur because API controllers do not inherit from the ApplicationController, so do not have access to 'supported_currencies'.
I was able to resolve by creating a base_controller_decorator to include Spree::CurrencyHelpers, as suggested by @jsilland in issue #42 , per below:
Spree::Api::BaseController.class_eval do
include Spree::CurrencyHelpers
end
Hope this helps anyone else who runs into this issue!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On Spree 3.1.
Seems to be related to issue #42 raised by @jsilland. In short, this appears to occur because API controllers do not inherit from the ApplicationController, so do not have access to 'supported_currencies'.
I was able to resolve by creating a base_controller_decorator to include Spree::CurrencyHelpers, as suggested by @jsilland in issue #42 , per below:
Hope this helps anyone else who runs into this issue!
The text was updated successfully, but these errors were encountered: