We are developing a magento store using latest version 2.4.8 magento csp is not allowing external domain & js including knockoutjs,cloudflarejs etc.., in checkout page. To resolve this we have created a csp whitelist custome module in our store app/code/ folder. please check our csp_whitelist.xml <?xml version="1.0"?> <csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd"> […]
Blog
My old computer’s power supply recently failed. I have a Windows 10 laptop that’s still running. I took the hard drive out from the old PC and put it in a SATA-to-USB enclosure so I can access the files and back them up on the laptop. But when I try […]
I’m running into a strange issue with Webstorm, the Jetbrains JavaScript IDE, where it fails to highlight matching braces when I add a line of valid PHP that does not change the structure of the block. Here is the PHP block in question: function buildTree2($pdo, $name, $percent = 100, $path […]
Example : Before sorting: image_1.jpg image_2.jpg image_3.jpg image_4 number.jpg image_5.jpg image_6.jpg imaget_7.jpg image_8.jpg image_9 number.jpg image_10.jpg image_11.jpg image_12.jpg image_13.jpg image_14.jpg image_15 number.jpg Process: The sorting process identifies image_4 number.jpg as the last file in the sequence with a space in its name. It takes the part of the file name […]
Another pc has come my way, and it all boots and runs, I did a clean install of Win 10 and got an error for activation. After a bit of googling I think the Mobo never got activated maybe they used Linux on the unit, I don’t know the full […]
I want to keep display English but remove it from keyboard layouts. The reason i want to do this is because Japanese IME can be used as both EN and JP and therefore the original EN is redundant for me. I have tried multiple things, like removing the keyboard from […]
we are developing a magento store using latest version 2.4.8 magento csp is not allowing external domain & js including knockoutjs,cloudflarejs etc.., in checkout page. To resolve this we have created a csp whitelist custome module in our store “app/code/” folder. please check our csp_whitelist.xml <csp_whitelist xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd”> requirejs/require.js knockout.js […]
MSI enabled, but Magento_CatalogInventory observers still trigger (N+1 risk). Can we rely solely on MSI observers? Context We run with MSI enabled, yet Magento_CatalogInventory observers are still active: <!-- From CatalogInventory --> <event name="sales_quote_item_collection_products_after_load"> <observer name="add_stock_items" instance="MagentoCatalogInventoryObserverAddStockItemsObserver"/> </event> <event name="sales_quote_item_qty_set_after"> <observer name="inventory" instance="MagentoCatalogInventoryObserverQuantityValidatorObserver"/> </event> MSI also registers: <event name="sales_quote_item_collection_products_after_load"> <observer […]