tozi Posted January 8, 2015 Share Posted January 8, 2015 Hi all, i need help. I have shop http://www.dobrypneu.cz/new/ , all prices is without decimals. I add this code |regex_replace:'/[.,][0-9]+/':'' But is there one problem. If i add product, then on top of page is price with decimals. And if i reload page then decimals is gone. Any idea? Link to comment Share on other sites More sharing options...
tuk66 Posted January 8, 2015 Share Posted January 8, 2015 I wouldn't use regex to hide the decimals. You should set Decimals = NO under Localization > Currencies > CZK. Link to comment Share on other sites More sharing options...
tozi Posted January 8, 2015 Author Share Posted January 8, 2015 But i need decimals in administration. Link to comment Share on other sites More sharing options...
PascalVG Posted January 9, 2015 Share Posted January 9, 2015 tozi, when adding a product, 'refresh' of cart is done by ajax-cart.js. You should add changes there too. But, when having decimals in background (like you mentioned in your other post about this: 1250 Kč, but in administration price 1250,13Kč) Beware that the customer can see 'strange' prices when ordering more products: (like when ordering 4 products, each 1250.13 = 1250.13*4 = 5000.52 = 5001Kč) pascal Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now