Hi all,
Have been generally successful in managing my Magento install but I am really overwhelming diagnosing this issue and could use some advice.
For configurable items, my tier pricing is displaying with the wrong currency format.
Example: Buy 10 for 0,10 each
My store is set to USD so it should be $0.10. This is the only place on my entire store I have noticed this issue, the currency appears to be displaying correctly everywhere else.
Here is my tracing:
This is where my ability starts to run out. I think the data should be coming from module-configurable-product/Block/Product/View/Type/Configurable.php, but, this is what I see in that file:
$config = [ 'attributes' => $attributesData['attributes'], 'template' => str_replace('%s', '<%- data.price %>', $store->getCurrentCurrency()->getOutputFormat()), 'currencyFormat' => $store->getCurrentCurrency()->getOutputFormat(), 'optionPrices' => $this->getOptionPrices(), 'priceFormat' => $this->localeFormat->getPriceFormat(),
I'm not sure why
'currencyFormat' => $store->getCurrentCurrency()->getOutputFormat(),
would be result in a value of
"$%s"
Anyone have any pointers for where I should dig in next?
Thanks!
Has anyone encountered an issue in Magento where tier pricing for configurable items displays with the wrong currency format? For example, instead of "$0.10", it shows as "0,10". The currency is set to USD, but this issue only occurs in tier pricing. Get more info on this
Great insights on debugging currency format display! 💰💻 Ensuring accurate currency formatting is crucial for user experience, especially in e-commerce and financial applications. If you're looking for more tips on optimizing website functionality and user experience, check out our latest insights menu . Clear and precise formatting can make a huge difference in how users interact with pricing and transactions. Thanks for sharing these valuable debugging techniques!
It sounds like you're on the right track with debugging the currency format issue in Magento. For complex issues like this, it often helps to trace back through any recent changes to the configuration settings or the codebase. If you're also considering upgrades or improvements to your store’s design, don't forget to check out a reliable kitchen remodel Tacoma WA service to ensure your setup is optimized for both functionality and aesthetics! Good luck with the debugging!
Your tier price is using the wrong config. It’s pulling from currencyFormat ($%s) instead of priceFormat, which is why you see 0,10 instead of $0.10. Much like when you are learning about pvc fencing and realize the details matter in getting the right result, you need to update the template or JS to use jsonConfig.priceFormat with priceUtils.formatPrice and it will display correctly.
I’ve run into similar currency format issues before, and it usually comes down to locale or regional settings not matching the expected format. Sometimes the problem hides in subtle details, like how the data is parsed or rounded before display. Paying attention to small details reminds me of crafting a story in — even a tiny misplaced word or punctuation can change the whole meaning. Double-checking language settings, decimal separators, and any auto-formatting scripts can really help. Testing across different browsers or systems often spots inconsistencies early. It’s interesting how both coding and writing require patience, care, and attention to detail to get things just right.