I wanto to display Prices with no decimal Places, in shopping cart footer (commerce order: order total ), but in the shopping cart view i found nothing to which does this. what shoud i do?

  • Do you want to remove the decimal places from that currency display sitewide, or just a certain place? Jan 6, 2013 at 6:34

2 Answers 2


Editing the view could be one solution but you can also do it via jquery i.e. capture the html inside the relevant div or span , then truncate the decimal part and then resupply the altered price value to the div or span. I think that should be very easy to do.


It is because it set in line_item theme module ,go to line_item module directory(folder) in commerce module (it is in commerce module submodules), then go to theme folder copy "commerce-line-item-summary.tpl.php" to your current theme, edit it.there is a where that the price will show.

this line exactly what you should change **(change $total) **

  <span class="line-item-total-label"><?php print $total_label; ?></span> <span class="line-  item-total-raw"><?php print $total; ?></span>

some thig like below work for you :

<span class="line-item-total-label"><?php print $total_label; ?></span> <span class="line-  item-total-raw"><?php print intval($total); ?></span>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.