I'm extending customer address for these I have to modify/extend vendor/Magento/module-ui core files.





When I have modified core files it's working fine, But this is not good procedure/idea to extend.

So I have created the vendor name as Magento in root/app/code/ and I have placed modified above files to same folder in local.





After placing those files I have cleared the cache. But still it's not showing my changes.

I have ran php bin/magento setup:static-content:deploy command also but no luck.

Could you please suggest me how to do this?


2 Answers 2


One module is registered under one path, that's why it can read from vendor, but cannot from app/code.

  • then where I need to create?
    – Bojjaiah
    Feb 4, 2016 at 7:23
  • I have created from root/app/design/adminhtml/Magento/backend/Magento_Ui folder also. but no luck. Can you please tell me path where i need to create?
    – Bojjaiah
    Feb 4, 2016 at 7:25
  • I'd create my own module to check, and try to put not in base but in adminhtml folder Feb 4, 2016 at 7:32
  • any help on this?
    – Bojjaiah
    Feb 4, 2016 at 12:59
  • any update on this how to extend .js and .html files?
    – Bojjaiah
    Apr 1, 2016 at 9:38

Finally Achieved my self.

Create requirejs-config.js file from Learning/HelloWorld/view/base and paste below code

var config = {
    map: {
        '*': {

Create collection.js file from Learning/HelloWorld/view/base/web/js/form/components and copy paste core code and modyfie it.

     * Copyright © 2015 Magento. All rights reserved.
     * See COPYING.txt for license details.
    ], function (_, utils, registry, Component, layout, confirm) {
        'use strict';

        var childTemplate = {
            parent: '${ $.$data.name }',
            name: '${ $.$data.childIndex }',
            dataScope: '${ $.name }',
            nodeTemplate: '${ $.$data.name }.${ $.$data.itemTemplate }'

        return Component.extend({
            defaults: {
                lastIndex: 0,
                template: 'Learning_HelloWorld/form/components/collection'

/* my custom methods */
            sendAddress: function (elem) {
                var self = this;

/* my custom methods */
            _sendAddress: function (elem) {



Create collection.html file from Learning/HelloWorld/view/base/web/template/form/components path and paste core code and modify it

   <div class="ui-tabs">
<!-- My Extra html code -->
     <button type="button" data-bind="click: $parent.sendAddress.bind($parent, element)">
         Send this Address

Now run the below commands.

  1. setup:upgrade
  2. setup:static-content:deploy

Now it will work.

Feel free to ask if any queries.

  • vendor/magento/module-ui/view/base/web/js/modal/confirm.js Sep 26, 2017 at 10:46
  • Hi @Magento two can you please help me, How to over ride confirm.js. Sep 26, 2017 at 10:47
  • @shivashankarm create a separate thread and tag me, then everyone will help you.
    – Bojjaiah
    Sep 26, 2017 at 11:03
  • Hi @magento two Please find the link :magento.stackexchange.com/q/194763/49102 Sep 26, 2017 at 11:35

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.