Showing results for 
Search instead for 
Did you mean: 

magento2: View model knockout

magento2: View model knockout

I am new in magento module development. I was searching for something similar to this 


I just editied the code in step 2 to meet my requirements. The subtotal and grand total is correct but Custom Discount always appears $10


I tried to edit the function in step 4


getCustomDiscount : function(){
return '$10';


I tried to change the value and flushed magento cache but the same value keeps showing ($10). Any suggestion please?