Join Slack
Powered by
Hey :wave: We want to have own currency and allo...
# support
d
Denys Medynskyi
08/05/2022, 10:36 AM
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
waiting_for_dev
08/08/2022, 11:27 AM
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
Denys Medynskyi
08/08/2022, 4:06 PM
@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
waiting_for_dev
08/09/2022, 8:27 AM
I'd make sure you empty the cart with
current_order.empty!
after switching the currency.
d
Denys Medynskyi
08/09/2022, 8:27 AM
Great suggestion. Thanks 🙏
👍 1
Open in Slack
Previous
Next