can anybody tell how to change currency type $ to ...
# support
m
can anybody tell how to change currency type $ to INR in master price
r
Hi Mohammad 👋 In your
config/initializers/spree.rb
you can change your
config.currency
from
USD
to
INR
.
It might be useful to have a look even at this fork of Solidus which can help you to quickly set up your store: https://github.com/piyushswain/solidus_india Here is the related blogpost: https://piyushswain.github.io/localising-your-solidus-store/
m
i have already tried but did't worked
i don't want to solve by interpolation bro
Spree.load_defaults '3.3.1' Spree.config do |config| config.currency = "INR"
did't worked
r
Hmm weird 😕 did you restart the server?
m
Yah bro
r
A new installation is probably required to regenerate the products/variants and their prices 🤔 If it’s not a production store, I suggest performing a fresh installation with solidus_india, designed to initialize the Solidus instance (with prices, taxes, and shipping methods) in INR. Or did you already tried even with
solidus_india
?
m
not find solidus_india gem
i also tried with bin/rails generate solidus_india:install
bro one more things while i install, no models files generated, how to install with controller, model and views files
r
You’re right. I posted an issue with a workaround that you can use in case you want to retry the installation: https://github.com/piyushswain/solidus_india/issues/10
bro one more things while i install, no models files generated, how to install with controller, model and views files
Are you looking for frontend views/models/controllers? In that case, you should use
solidus_starter_frontend
. This new frontend was created exactly for the purpose you described. You can find more details about this point here: https://github.com/solidusio/solidus_starter_frontend#considerations If you followed the steps listed in the guide: https://guides.solidus.io/getting-started/installing-solidus#in-an-existing-app When you perform the installation, you must choose to use
solidus_starter_forntend
so that you can edit all frontend views, assets, routes, controllers, and specs directly in your project. If you are looking for those related to solidus_backend/solidus_core or solidus_api, those residing in the gems, and to modify something, you must proceed with targeted customizations. In the customization section, you can find various chapters dedicated to the customization of the mentioned Solidus dependencies: https://guides.solidus.io/customization/customizing-the-backend