I am upgrading from 2.4.3 to 2.4.5 and see that the code to move currency symbol from left to right of price is not working. How can I update the code to get it to work? Currently I’m using the currency_display_options_forming event hook to add currency options like this (similar to this answer: https://magento.stackexchange.com/a/286889/109359):
public function execute(MagentoFrameworkEventObserver $observer)
{
$currencyOptions = $observer->getEvent()->getCurrencyOptions();
$currencyOptions->setData('position', MagentoFrameworkCurrency::RIGHT);
$currencyOptions->setData('symbol', ',-');
return $this;
}
The symbol part is working like in 2.4.3, but position is not.