Skip to content

requirejs-config.js

Auto Added by WPeMatico

Possible reasons for occasional incomplete execution of javascript from a custom odule

I have developed a custom module for magento 2.4.6, which loads 3 javascript files through requirejs config. var config = { map: { “*”: { ‘Magento_Checkout/template/billing-address/details.html’: ‘Iwdata_AddressExt128e/web/template/billing-address/details.html’ } }, paths: { ‘leaflet’: ‘Iwdata_AddressExt128e/js/leaflet’, ‘custom’: ‘Iwdata_AddressExt128e/js/custom’, ‘Iwdatacustom_customer’: ‘Iwdata_AddressExt128e/js/Iwdatacustom_customer’ }, shim: {… Read More »Possible reasons for occasional incomplete execution of javascript from a custom odule

magento 2.4.5 set checked default checkbox

We have the following module in the vendor extending html vendor/GB/module-payment view/frontend/requirejs-config.js const config = { config: { mixins: { ‘VndorPayment_Magento2/js/view/payment/method-renderer/cc’: { ‘GB_Payment/js/view/payment/method-renderer/cc-mixin’: true }, in js js/view/payment/method-renderer/cc-mixin define([], function () { ‘use strict’; return function (CreditCard) { return CreditCard.extend({… Read More »magento 2.4.5 set checked default checkbox

Magento 2.4.5 customer-data.js not initiating in Custom theme js file

I have a function of ajax add to cart in below file and doing section reload. below code is in app/design/frontend/MyThemeNS/Mytheme/web/js/custom.js (just mentioning sample for understanding.) require([ ‘jquery’, ‘mage/url’, ‘Magento_Customer/js/customer-data’, ], function ($, url, customerData) { …. ajax call function… Read More »Magento 2.4.5 customer-data.js not initiating in Custom theme js file