Hey :wave: We want to have own currency and allo...
# support
d
Hey 👋 We want to have own currency and allow users to buy items for our own currency. Also, product can be bought for money. Question 🙋‍♂️ How can we display price in $ on one page and in our local currency on another page?
w
Maybe you should create your own PricingOptions class and retrieve something from session: https://github.com/nebulab/solidus/blob/master/core/app/models/spree/variant/pricing_options.rb
d
@waiting_for_dev I am going to update currency on the order: depending on the context order will be in $ or own currency. What do you think about it?
w
I'd make sure you empty the cart with
current_order.empty!
after switching the currency.
d
Great suggestion. Thanks 🙏
👍 1