This commit is contained in:
Kevin Adametz 2020-01-02 19:22:30 +01:00
parent f03862b523
commit 1a43060996
42 changed files with 1160 additions and 83 deletions

View file

@ -110,7 +110,7 @@ class ShoppingOrder extends Model
public function getFormattedShipping()
{
if (\App::getLocale() == "en") {
if (\App::getLocale() === "en") {
return number_format($this->attributes['shipping'], 2, '.', ',');
}
return number_format($this->attributes['shipping'], 2, ',', '.');
@ -118,7 +118,7 @@ class ShoppingOrder extends Model
public function getFormattedTotalShipping()
{
if (\App::getLocale() == "en") {
if (\App::getLocale() === "en") {
return number_format($this->attributes['total_shipping'], 2, '.', ',');
}
return number_format($this->attributes['total_shipping'], 2, ',', '.');
@ -127,7 +127,7 @@ class ShoppingOrder extends Model
public function getFormattedPrice()
{
if (\App::getLocale() == "en") {
if (\App::getLocale() === "en") {
return number_format($this->attributes['price'], 2, '.', ',');
}
return number_format($this->attributes['price'], 2, ',', '.');