Skip to content

Commit

Permalink
order mail: hide total price for customers that are not allowed to se…
Browse files Browse the repository at this point in the history
…e prices (#3719)
  • Loading branch information
vitek-rostislav authored Jan 13, 2025
2 parents 0d04a6e + 7100f8d commit 3fafd15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Component/Price/MoneyFormatterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class MoneyFormatterHelper
protected const MAX_FRACTION_DIGITS = 6;
protected const DECIMAL_POINT = '.';
protected const THOUSANDS_SEPARATOR = '';
public const HIDDEN_FORMAT = '***';

/**
* @param \Shopsys\FrameworkBundle\Component\Money\Money $money
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Resolver/Query/MoneyResolverMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function serializeMoney(Money $money): string
return MoneyFormatterHelper::formatWithMaxFractionDigits($money);
}

return MoneyFormatterHelper::HIDDEN_FORMAT;
return HiddenMoney::HIDDEN_FORMAT;
}

/**
Expand Down

0 comments on commit 3fafd15

Please sign in to comment.