datinmar Posted October 24, 2013 Share Posted October 24, 2013 (edited) Hello everyone, I'm looking for a way to display the total price of the customer cart without the currency symbol attached to it, for example, if the price is '123.45 €', I want '123.45' to be displayed, and only in the blockcart. I thought I could manage to do this with the substr function in order to 'cut' the last two characters, but it just doesn't work. Here's the piece of code that has to be modified : <div class="PriceCart"> {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)} </div> i If you've got a way to do this, I'd be glad to hear it ! Have a nice day, Martin. Edited October 24, 2013 by datinmar (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2013 Share Posted October 24, 2013 Hey Martin, try this, edit the currency and put a blank where the currency symbol is. save it..then you should not see the currency symbol. Link to comment Share on other sites More sharing options...
datinmar Posted October 24, 2013 Author Share Posted October 24, 2013 Hey Martin, try this, edit the currency and put a blank where the currency symbol is. save it..then you should not see the currency symbol. Hello El Patron ! I know I have this possibility, but I just need to trim the currency symbol in the blockcart (for design purposes), I still want the symbol to be displayed everywhere else. Link to comment Share on other sites More sharing options...
El Patron Posted October 24, 2013 Share Posted October 24, 2013 my bad, I see now where you wanted it only block cart... Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted November 4, 2013 Share Posted November 4, 2013 convertPrice is a smarty function to convert float/digits/number variable became a price variable (and add currency symbol) Use {$cart->getOrderTotal(true, $blockuser_cart_flag)} Instead {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)} 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