By default of Magento 2, price format is a little strange for some currencies so we need to change it. Here's the way to change price format.
Here's the example for the case of Vietnamese dong.
Default displayed format was 100.000,00. Then I changed it into 100,000 (separated by comma without decimal point).
# vendor/magento/zendframework1/library/Zend/Locale/Data/vi.xml <symbols numbersystem="latn"> <decimal>.</decimal> <group>,</group> </symbols>
# vendor/magento/framework/Pricing/PriceCurrencyInterface.php const DEFAULT_PRECISION = 0;
# vendor/magento/module-directory/Model/Currency.php return $this->formatPrecision($price, 0, $options, $includeContainer, $addBrackets);
# vendor/magento/module-sales/Model/Order.php public function formatPrice($price, $addBrackets = false) { return $this->formatPricePrecision($price, 0, $addBrackets); }
Thanks for share.
ReplyDeleteBut in Admin Order not effected!
Thank you.
ReplyDeleteBut product detail page is still have 2 decimal points and backend does not changes.
thank you
ReplyDeletecould you please complete this and show how to change in products details page and admin panel and admin invoice , it is been a year now!
Thanks you so much and you also tell us to how to change price in detail page also...
ReplyDeletethank you
ReplyDeleteReally cool post, highly informative and professionally written and I am glad to be a visitor of this perfect blog, thank you for this rare info!
ReplyDeleteMagento course in chennai
Marvelous and fascinating article. Incredible things you've generally imparted to us. Much obliged. Simply keep making this kind out of the post.
ReplyDeletecustom magento development
Magento has come a long way since 2007 - the year of its initial release. Magento has proven to be the best eCommerce Shopping Cart and there's quite a few reasons for such. plakatų dizainas
ReplyDeletehello
ReplyDeletei have changed
. to ,
, to
in the file: vendor/magento/zendframework1/library/Zend/Locale/Data/en.xml (im using english), but the number still like this in the catalog page: 5,900 .and when i open the product page i get the default format like this : 5,900.00
ps: i have changed also the other files as shown)
Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. Magento webshop laten bouwen
ReplyDeleteIt will not cost you much more if you need Magento webshop laten bouwen from a well-recognized webshop.
ReplyDeleteI’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... magento data entry
ReplyDeleteIEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Projects for CSE It gives you tips and rules that is progressively critical to consider while choosing any final year project point.
ReplyDeleteJavaScript Online Training in India
JavaScript Training in India
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
sdfdsdfdc
ReplyDeleteĐặt vé tại phòng vé Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ giá rẻ
cách mua vé máy bay giá rẻ từ mỹ về việt nam
giá vé máy bay từ canada về Việt Nam
các chuyến bay từ narita về hà nội
vé máy bay từ hàn quốc sang việt nam
Vé máy bay từ Đài Loan về Việt Nam
rastgele görüntülü konuşma - kredi hesaplama - instagram video indir - instagram takipçi satın al - instagram takipçi satın al - tiktok takipçi satın al - instagram takipçi satın al - instagram beğeni satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - instagram takipçi satın al - binance güvenilir mi - binance güvenilir mi - binance güvenilir mi - binance güvenilir mi - instagram beğeni satın al - instagram beğeni satın al - polen filtresi - google haritalara yer ekleme - btcturk güvenilir mi - binance hesap açma - kuşadası kiralık villa - tiktok izlenme satın al - instagram takipçi satın al - sms onay - paribu sahibi - binance sahibi - btcturk sahibi - paribu ne zaman kuruldu - binance ne zaman kuruldu - btcturk ne zaman kuruldu - youtube izlenme satın al - torrent oyun - google haritalara yer ekleme - altyapısız internet - bedava internet - no deposit bonus forex - erkek spor ayakkabı - webturkey.net - karfiltre.com - tiktok jeton hilesi - tiktok beğeni satın al - microsoft word indir - misli indir
ReplyDeleteaşk kitapları
ReplyDeleteyoutube abone satın al
cami avizesi
cami avizeleri
avize cami
no deposit bonus forex 2021
takipçi satın al
takipçi satın al
takipçi satın al
takipcialdim.com/tiktok-takipci-satin-al/
instagram beğeni satın al
instagram beğeni satın al
btcturk
tiktok izlenme satın al
sms onay
youtube izlenme satın al
no deposit bonus forex 2021
tiktok jeton hilesi
tiktok beğeni satın al
binance
takipçi satın al
uc satın al
sms onay
sms onay
tiktok takipçi satın al
tiktok beğeni satın al
twitter takipçi satın al
trend topic satın al
youtube abone satın al
instagram beğeni satın al
tiktok beğeni satın al
twitter takipçi satın al
trend topic satın al
youtube abone satın al
takipcialdim.com/instagram-begeni-satin-al/
perde modelleri
instagram takipçi satın al
instagram takipçi satın al
takipçi satın al
instagram takipçi satın al
betboo
marsbahis
sultanbet
takipçi satın al
ReplyDeletetakipçi satın al
takipçi satın al
www.escortsmate.com
ReplyDeleteescortsmate.com
https://www.escortsmate.com
tiktok jeton hilesi
ReplyDeletetiktok jeton hilesi
binance referans kimliği
gate güvenilir mi
tiktok jeton hilesi
paribu
btcturk
bitcoin nasıl alınır
yurtdışı kargo
Ankara Elektrik Ustası arıyorsanız doğru yerdesiniz. Ankara Elektrik Ustası hiç çekinmeden tüm elektrik sorunlarını arayabilir bilgi alabilirsiniz. Elektrik Ustası lazım olduğunda Ankara ‘nın birçok mahallesine hizmet veren Elektrikçi ustalarımızdan profesyonel destek alabilirsiniz. Ankara Elektrik Ustası
ReplyDeleteseo fiyatları
ReplyDeletesaç ekimi
dedektör
instagram takipçi satın al
ankara evden eve nakliyat
fantezi iç giyim
sosyal medya yönetimi
mobil ödeme bozdurma
kripto para nasıl alınır
İnstagram takipçi satın al! İnstagram takipçi sitesi ile takipçi satın al sende sosyal medyada fenomen olmaya bir adım at. Sende hemen instagram takipçi satın almak istiyorsan tıkla:
ReplyDelete1- takipçi satın al
2- takipçi satın al
3- takipçi satın al
bitcoin nasıl alınır
ReplyDeletetiktok jeton hilesi
youtube abone satın al
gate io güvenilir mi
referans kimliği nedir
tiktok takipçi satın al
bitcoin nasıl alınır
mobil ödeme bozdurma
mobil ödeme bozdurma