• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

How to change the base currency using code end?

Knowledge Base
2
9
720
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Deepanjali last edited by 21 Aug 2020, 07:13

    Re: How can i change the base currency symbol on Admin Dashboard?
    I followed through the steps from the mentioned topic but the base currency still remains USD
    c9197ef3-9f3e-4dfd-83ef-f6455e7b69dd-image.png

    I've set it to INR in both the code file and the admin panel

    1 Reply Last reply Reply Quote 0
    • V
      Vaishali Agarwal last edited by 21 Aug 2020, 07:20

      @Deepanjali
      to change the base currency go to the config/app.php and change CURRENCY

      then run the command
      php artisan config:cache

      1 Reply Last reply Reply Quote 0
      • D
        Deepanjali last edited by 21 Aug 2020, 09:04

        I changed the currency and successfully run the command but the output does not change

        cf77cdbb-dec9-475d-b6f5-c97106841c68-image.png
        0af874fd-8b3e-4ebc-9863-4afb70ab4107-image.png

        1 Reply Last reply Reply Quote 0
        • V
          Vaishali Agarwal last edited by 21 Aug 2020, 09:10

          @Deepanjali
          it should be added in the locale as well.
          could you check if INR is created in locales

          1 Reply Last reply Reply Quote 0
          • D
            Deepanjali last edited by 24 Aug 2020, 05:11

            It has been created:
            58f55629-0ff2-40d8-8ae8-17256f224ecb-image.png

            Also set as the default currency:
            27087efe-3f56-4fd6-8564-29c338c0e90c-image.png

            1 Reply Last reply Reply Quote 0
            • V
              Vaishali Agarwal last edited by 24 Aug 2020, 05:28

              @Deepanjali
              go to the .env file and add the APP_CURRENCY=INR then flush the cache.

              1 Reply Last reply Reply Quote 0
              • D
                Deepanjali last edited by 24 Aug 2020, 05:54

                Done that, I'm still getting USD only

                1 Reply Last reply Reply Quote 0
                • V
                  Vaishali Agarwal last edited by 24 Aug 2020, 06:20

                  @Deepanjali
                  run the commands below if changes are not reflected.

                  composer dump-autoload
                  php artisan config:cache

                  1 Reply Last reply Reply Quote 0
                  • D
                    Deepanjali last edited by 24 Aug 2020, 06:26

                    It's done, Thank you!

                    1 Reply Last reply Reply Quote 1
                    5 out of 9
                    • First post
                      5/9
                      Last post