Skip to content

magento2.4

Auto Added by WPeMatico

Magento 2 – Access to XMLHttpRequest – /adminhtml/Magento/spectrum/en_US/js-translation.json has been blocked

Currently we are using magento 2.4.6-p6, we are recently noticing below issue in the console, while opening the cms blocks / cms pages from admin. Access to XMLHttpRequest at ‘https://website.com/static/version1721183017/adminhtml/Magento/spectrum/en_US/js-translation.json’ from origin ‘null’ has been blocked by CORS policy: Response… Read More »Magento 2 – Access to XMLHttpRequest – /adminhtml/Magento/spectrum/en_US/js-translation.json has been blocked

How to keep track of this of the parent component when calling a parent function inside a foreach loop in the template in knockout?

I have a cart-items-mixin.js define([‘Magento_Catalog/js/price-utils’, ‘Magento_Checkout/js/model/quote’, ‘ko’,], function(priceUtils, quote, ko) { ‘use strict’; return function(CartItems) { return CartItems.extend({ (…) showDetails: ko.observable(false), handleShowDetails: function() { this.showDetails(true); }, initialize: function() { this._super(); (…); } }); }; }); and the template: <!– /**… Read More »How to keep track of this of the parent component when calling a parent function inside a foreach loop in the template in knockout?

Magento2.4 How to override MagentoCheckoutControllerCart?

Even if I simply copy the file without changes, it does not work as a preference. Any idea why? I created a preference in di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”MagentoCheckoutControllerCartAdd” type=”MycompanyMyappControllerCartAdd” /> </config> I am simply trying to… Read More »Magento2.4 How to override MagentoCheckoutControllerCart?