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

Bagisto

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

Switch Currency and Locale API is not available

Bug Report
2
2
845
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.
  • R
    rahulanand84 last edited by 13 Nov 2021, 03:45

    In the API package, the switch-currency and switch-locale API's are missing the business logic to switch the currency and locale.

    Go to "Packages/Webkul/API/Http/routes.php, you will see the routes for switching the currency and locale.

    //Currency and Locale switcher
    Route::get('switch-currency', 'CoreController@switchCurrency');
    
    Route::get('switch-locale', 'CoreController@switchLocale');
    

    but when you open the corecontroller, you will see no business logic to switch it.

    public function switchCurrency()
        {
            return response()->json([]);
        }
    
    public function switchLocale()
        {
            return response()->json([]);
        }
    
    1 Reply Last reply Reply Quote 0
    • devansh-webkul
      devansh-webkul last edited by devansh-webkul 15 Nov 2021, 05:47 15 Nov 2021, 05:47

      Currently, this is not supported that's why it is blank.

      All these things will integrate when this enhancement is start,
      https://github.com/bagisto/bagisto/issues/5143

      In this, we will provide the API for the whole system.

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post