Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Oct 31, 2024
1 parent 8aceffa commit 8c50195
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config/CheckoutCod.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
*
* The version of the package
*/
'version' => '1.0.0',
'version' => '1.0.1',
/**
*
* The version number of the package
*/
'versionNum' => '100',
'versionNum' => '101',

/**
*
Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/Api/V1/ProductsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ public function details($slug, Request $request)
// currency by ip
$currency = \Nicelizhi\OneBuy\Helpers\Utils::getCurrencyByCountry($ip_country);


$currency_get = $request->input('currency');
if(!empty($currency_get)) {
core()->setCurrentCurrency($currency_get);
$currency = $currency_get;
}

$data = Cache::get($this->checkout_v2_cache_key.$slug.$currency);
Expand Down

0 comments on commit 8c50195

Please sign in to comment.