cancel
Showing results for 
Search instead for 
Did you mean: 

Overwrite input.html in Magento UI in my module

SOLVED

Overwrite input.html in Magento UI in my module

I'm trying to overwrite input.html in module-ui > view > frontend > web > templates > form> element in my module.

 

Somehow it isn't working whatever I try.

 

I currently got this in my requirejs-config.js.

 

var config = {
    config: {
        mixins: {
            'Magento_Checkout/js/view/shipping': {
                'BB_Checkout/js/mixin/shipping-mixin': true
            }
        }
    },
    'map': {
        '*': {
            'Wezz_Postcode/js/view/postcode': 'BB_Checkout/js/view/postcode-overwrite',
            'Magento_Ui/templates/form/element/input': 'BB_Checkout/templates/form/element/input-overwrite'
        }
    }
};

I also already tried clearing my M2 cache en browser cache.

 

Thanks in advance.

1 REPLY

Re: Overwrite input.html in Magento UI in my module

Ah apparently Magento_Ui/templates is mapped to ui/template in Magento\vendor\magento\module-ui\view\base\requirejs-config.js

 

So after adding ui/template it works.