That's not safe. `Spree::Config.pricing_options_cl...
# support
j
That's not safe.
Spree::Config.pricing_options_class
is responsible for extracting the currency from a given context
j
Could i ask a follow up to this? Is there an explanation of why this is unsafe? I think the pricing options don't work for us cause we're trying to set the pricing based on the IP
And from my understanding this class gives selection tools for the pricing as opposed to an ability to detect info about the user and apply it?
j
You can implement your own custom pricing options class that selects based on whatever you want. I'd recommend setting a session variable with the currency (based on IP) and then having your pricing options class work with that.