How to remove the cancel button from the billing address edit form?
-
15-04-2021 - |
Solution
I guess you know the basics of creating a module.
1.In your custom module, create Vendor/Module/view/frontend/requirejs-config.js
var config= {
map: {
'*': {
'Magento_Checkout/template/billing-address/actions.html': 'Ananta_RemoveCancel/template/billing-address/actions.html',
}
}
}
2.Now create template file, Vendor/Module/view/frontend/web/template/billing-address/actions.html
<div class="actions-toolbar">
<div class="primary">
<button class="action action-update"
type="button"
click="updateAddress">
<span translate="'Update'"/>
</button>
</div>
</div>
Done, now cancel button from the billing-address form will be removed.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange