1

remove decimal from price on cart summry page in mgento2

3
  • do you want to remove only from cart summary area ? and cart summary on checkout page ? Commented Oct 6, 2018 at 19:15
  • yes i want to remove on cart summary page which show on side
    – sdf
    Commented Oct 6, 2018 at 19:18
  • i succesfullly remove from plp page but not works on cart summary pagae
    – sdf
    Commented Oct 6, 2018 at 19:19

1 Answer 1

1

To change price decimal you have to override and change getFormattedPrice() defined in /Magento_Checkout/js/view/summary/abstract-total.js .

However you can also use Lillik Price Decimal free extension, which will remove decimal value from all places ( i.e detail page, listing page, cart view page, cart summary and total etc ).

2
  • yes i used that extenssion but not remove cart summary page
    – sdf
    Commented Oct 6, 2018 at 19:57
  • i think it does, i had tested that too however you can opt js solution then. Commented Oct 6, 2018 at 20:00

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.