Overwrite input.html in Magento UI in my moduleHow to extend js class/method of checkout model class in...
How to keep bees out of canned beverages?
Mistake in years of experience in resume?
What was Apollo 13's "Little Jolt" after MECO?
Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?
"The cow" OR "a cow" OR "cows" in this context
Work requires me to come in early to start computer but wont let me clock in to get paid for it
Is it acceptable to use working hours to read general interest books?
Creating a chemical industry from a medieval tech level without petroleum
What is the term for a person whose job is to place products on shelves in stores?
Multiple fireplaces in an apartment building?
All ASCII characters with a given bit count
Where was the County of Thurn und Taxis located?
`microtype`: Set Minimum Width of a Space
Why must Chinese maps be obfuscated?
Drawing a german abacus as in the books of Adam Ries
How bug prioritization works in agile projects vs non agile
Why did C use the -> operator instead of reusing the . operator?
NPN: Not fully sinking to GND
Does the damage from the Absorb Elements spell apply to your next attack, or to your first attack on your next turn?
A strange hotel
Is Electric Central Heating worth it if using Solar Panels?
Double-nominative constructions and “von”
Magical attacks and overcoming damage resistance
Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?
Overwrite input.html in Magento UI in my module
How to extend js class/method of checkout model class in magento 2How Are the Things Magento 2 calls “mixins” Implemented?Magento 2 - Checkout aria-invalid=“false”Overwrite one file from module in theme?Overwriting UI elements in Module with requirejs-config.jsError: Mismatched anonymous define() module error when integrating intl-tel-input with mageto2Magento 2.2.5: Custom Checkout Place Order ErrorShipping estimation block missing if there are many products on the cartHow to override actions.html and jshow to change magento 2 date.js form file
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
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.
magento2 checkout magento2.2.3
add a comment |
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.
magento2 checkout magento2.2.3
add a comment |
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.
magento2 checkout magento2.2.3
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.
magento2 checkout magento2.2.3
magento2 checkout magento2.2.3
edited Apr 25 '18 at 9:54
Chirag Rajput
1,290321
1,290321
asked Apr 25 '18 at 9:47
SanneSanne
844316
844316
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Ah apparently Magento_Ui/templates is mapped to ui/template in Magentovendormagentomodule-uiviewbaserequirejs-config.js
So after adding ui/template it works.
add a comment |
I don't understand. It doesn't work for me.
I tried this:
var config = {
map: {
"*": {
'ui/template/form/element/select.html':'Bestworlds/ScoutBags/web/templates/select.html'
}
}
};
please, Can you help me?
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f223621%2foverwrite-input-html-in-magento-ui-in-my-module%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ah apparently Magento_Ui/templates is mapped to ui/template in Magentovendormagentomodule-uiviewbaserequirejs-config.js
So after adding ui/template it works.
add a comment |
Ah apparently Magento_Ui/templates is mapped to ui/template in Magentovendormagentomodule-uiviewbaserequirejs-config.js
So after adding ui/template it works.
add a comment |
Ah apparently Magento_Ui/templates is mapped to ui/template in Magentovendormagentomodule-uiviewbaserequirejs-config.js
So after adding ui/template it works.
Ah apparently Magento_Ui/templates is mapped to ui/template in Magentovendormagentomodule-uiviewbaserequirejs-config.js
So after adding ui/template it works.
answered Apr 25 '18 at 9:57
SanneSanne
844316
844316
add a comment |
add a comment |
I don't understand. It doesn't work for me.
I tried this:
var config = {
map: {
"*": {
'ui/template/form/element/select.html':'Bestworlds/ScoutBags/web/templates/select.html'
}
}
};
please, Can you help me?
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I don't understand. It doesn't work for me.
I tried this:
var config = {
map: {
"*": {
'ui/template/form/element/select.html':'Bestworlds/ScoutBags/web/templates/select.html'
}
}
};
please, Can you help me?
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I don't understand. It doesn't work for me.
I tried this:
var config = {
map: {
"*": {
'ui/template/form/element/select.html':'Bestworlds/ScoutBags/web/templates/select.html'
}
}
};
please, Can you help me?
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I don't understand. It doesn't work for me.
I tried this:
var config = {
map: {
"*": {
'ui/template/form/element/select.html':'Bestworlds/ScoutBags/web/templates/select.html'
}
}
};
please, Can you help me?
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 1 hour ago
Best Worlds WebBest Worlds Web
1
1
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Best Worlds Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f223621%2foverwrite-input-html-in-magento-ui-in-my-module%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown