How to remove the line below
<span class="discount coupon" data-bind="text: getCouponLabel()"></span>
in Magento_SalesRule/cart/totals/discount.html
var config = {
'config': {
'mixins': {
'Magento_SalesRule/js/view/cart/totals/discount': {
'XXX_YYY/js/view/cart/totals/discount': true
},
}}};
define([
'Magento_Checkout/js/view/summary/abstract-total',
'Magento_Checkout/js/model/quote'
], function (Component, quote) {
'use strict';alert("cart");
return function (target) {
return target.extend({
defaults: {
template: 'XXX_YYY/cart/totals/discount'
}});
}
});
And remove the line in this template, But I can not get the template in UI
mixins
code in requirejs-config.js file, right?