Patrick Henninger
2018-12-28 03:50:42 +01:00
parent 4a2ae61ed4
commit 1190d72b52
5 changed files with 13 additions and 13 deletions

View File

@@ -575,11 +575,11 @@ class Cart
$stored = $this->getConnection()->table($this->getTableName())
->where('identifier', $identifier)->first();
$storedContent = unserialize($stored->content);
$storedContent = unserialize(data_get($stored, 'content'));
$currentInstance = $this->currentInstance();
$this->instance($stored->instance);
$this->instance(data_get($stored, 'instance'));
$content = $this->getContent();
@@ -742,7 +742,7 @@ class Cart
}
/**
* Get the Formated number
* Get the Formatted number
*
* @param $value
* @param $decimals
@@ -759,7 +759,7 @@ class Cart
$decimalPoint = is_null(config('cart.format.decimal_point')) ? '.' : config('cart.format.decimal_point');
}
if(is_null($thousandSeperator)){
$thousandSeperator = is_null(config('cart.format.thousand_seperator')) ? ',' : config('cart.format.thousand_seperator');
$thousandSeperator = is_null(config('cart.format.thousand_separator')) ? ',' : config('cart.format.thousand_separator');
}
return number_format($value, $decimals, $decimalPoint, $thousandSeperator);