@@ -25,13 +25,14 @@ |
||
| 25 | 25 | $currencyAndSymbol = $cart_controller->currency(); |
| 26 | 26 | $currency = $currencyAndSymbol['currency']; |
| 27 | 27 | $symbol = $currencyAndSymbol['symbol']; |
| 28 | - if ($symbol == '') { //If user has no currency symbol(In case of old customers) |
|
| 28 | + if ($symbol == '') { |
|
| 29 | +//If user has no currency symbol(In case of old customers) |
|
| 29 | 30 | $symbol = Currency::where('code', $currency)->pluck('symbol')->first(); |
| 30 | 31 | $symbol = \Auth::user()->update(['currency_symbol'=> $symbol]); |
| 31 | 32 | } |
| 32 | 33 | foreach ($plans as $value) { |
| 33 | 34 | $cost = $value->planPrice()->where('currency', $currency)->first(); |
| 34 | - if ($cost) { |
|
| 35 | + if ($cost) { |
|
| 35 | 36 | $cost = $cost->add_price; |
| 36 | 37 | } |
| 37 | 38 | $priceDescription = $value->planPrice->first(); |