Skip to main content
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/
Source Link

There is another way. We should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/template/minicart/content.html' } } }; 

A more explain we can read more herehere.

There is another way. We should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/template/minicart/content.html' } } }; 

A more explain we can read more here.

There is another way. We should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/template/minicart/content.html' } } }; 

A more explain we can read more here.

Improved content.
Source Link
Khoa Truong
  • 32.5k
  • 11
  • 92
  • 159

There is another way we should know that we can override the html template via RequireJS. We don't need to create a custom themeWe should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.jsapp/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/template/minicart/content.html' } } }; 

A more explain we can read more here.

There is another way we should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/template/minicart/content.html' } } }; 

A more explain we can read more here.

There is another way. We should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/template/minicart/content.html' } } }; 

A more explain we can read more here.

deleted 2 characters in body
Source Link
Khoa Truong
  • 32.5k
  • 11
  • 92
  • 159

There is another way we should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/js/formtemplate/componentsminicart/collectioncontent.js'html' } } }; 

A more explain we can read more here.

There is another way we should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/js/form/components/collection.js' } } }; 

A more explain we can read more here.

There is another way we should know that we can override the html template via RequireJS. We don't need to create a custom theme. In your custom module, create a requirejs-config.js:

app/code/{Vendor}/{Module_Name}/view/frontend/requirejs-config.js

var config = { map: { '*': { 'Magento_Checkout/template/minicart/content.html': 'Vendor_ModuleName/template/minicart/content.html' } } }; 

A more explain we can read more here.

Source Link
Khoa Truong
  • 32.5k
  • 11
  • 92
  • 159
Loading