Jump to content

Display price without currency symbol ?


Recommended Posts

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 by datinmar (see edit history)
Link to comment
Share on other sites

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...