How to know which file of vendor js need to override. Suppose I want to add custom fields on checkout page on shipping information.so which js file need to override.and how I will know.
In order to add custom field on checkout, there is no need override js files. Usually new fields are added via lauout xml file. Also, if a custom frontend logic is required for a field, a UI component that is JavaScript file can also be configured. Once you have a field added via xml and JS file to handle logic e.g. some custom validation, you are almost done with customization. One more thing that can be added is layout processor php class to handle dynamic settings of the field. Please let me know if you have questions.
Hello than you for the tutorial. Is there possibility to create mixing to extend functionality for scrip which is under the Theme web/js folder? And how it's possible to achieve that?
You run code of original and than run Your code to change component. How about change original function of component to run code once and not change DOM too much ? How this might looks like ?
@@MaxPronko Suppose I have a html file which is completely override from core and we have to add something into this over rided html file , Is it possible to do that ?
I didn't understand much of that Max so it impressed me a lot
Great to hear 🤗🤣
Thank you very much for sharing your knowledge, your video was of great help to me, I understood concretely and quickly the utility of MIXIN.
Thanks. Happy to read it
I only watched to make sure you used a mixin and you did! Great work Max!
How to know which file of vendor js need to override.
Suppose I want to add custom fields on checkout page on shipping information.so which js file need to override.and how I will know.
In order to add custom field on checkout, there is no need override js files. Usually new fields are added via lauout xml file. Also, if a custom frontend logic is required for a field, a UI component that is JavaScript file can also be configured. Once you have a field added via xml and JS file to handle logic e.g. some custom validation, you are almost done with customization. One more thing that can be added is layout processor php class to handle dynamic settings of the field. Please let me know if you have questions.
Nice video. On 4:36 I think that you used some kind of plugin to quick search inline. What is this plugin called? (or is it a build in vscode feature)
hit 'shift + shift' in Phpstorm. He's not using VScode.
Normally i create mixins without the mage wrapper js, but why u have used it or what does it do in general ? thx
Hello than you for the tutorial. Is there possibility to create mixing to extend functionality for scrip which is under the Theme web/js folder? And how it's possible to achieve that?
It is possible
@@MaxPronko Hmm interesting all my attempts failed :D.
You run code of original and than run Your code to change component. How about change original function of component to run code once and not change DOM too much ? How this might looks like ?
Can we use mixin feature in html template file
What do you mean?
@@MaxPronko Suppose I have a html file which is completely override from core and we have to add something into this over rided html file , Is it possible to do that ?
why u used such approach for mixin? Maybe there are some pros/cons?
There are always pros and cons. Do you have a suggestion?
Goodbye to MAP then.