Fixed exchange rate exception
This commit is contained in:
parent
0b22ca7ad1
commit
d8403bf162
|
|
@ -51,7 +51,7 @@ class ExchangeRateController extends Controller
|
|||
|
||||
$this->currencyRepository = $currencyRepository;
|
||||
|
||||
$this->exchangeRate = $exchangeRate;
|
||||
$this->exchangeRateRepository = $exchangeRateRepository;
|
||||
|
||||
$this->_config = request('_config');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ class Configurable extends AbstractType
|
|||
if (! $childProduct->haveSufficientQuantity($data['quantity']))
|
||||
return trans('shop::app.checkout.cart.quantity.inventory_warning');
|
||||
|
||||
$price = $this->getFinalPrice();
|
||||
$price = $childProduct->getTypeInstance()->getFinalPrice();
|
||||
|
||||
$products = [
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in New Issue