When I first started learning TypeScript, one of the suggestions I often heard was, “convert one of your existing projects! It’s the best way to learn!” Soon after, a friend from Twitter offered to do just that — show me how to migrate a React app to TypeScript. The purpose […]
Daily Archives: March 14, 2020
So, I’m trying to override a class that is used to create a virtual type, which is used as a preference for another class (see the Core di.xml below). I have posted the excerpt from my di.xml as well. Everything compiles fine, but it never seems to pick up my […]
thanks in advance for taking your time to help me and others that may be stuck at the same point. I’ve installed Magento on my machine, created .gitignore following documentation, made change on a file, made a commit, and pushed to my repo. On other machine I installed Magento, and […]
I am trying to overide a date calendar class in magento. But when i try doing it the date input from product page disappears. Basic i want to overide the date calendar script to add custom settings to it. I added a hidden span to see if my changes gets […]
I’ve got a custom Magento 2 module that is causing issues on newly created products. All of the existing ones seem to be okay. I’m running Magento 2.3.4 in my template: /app/design/frontend/MySite/MyTheme/Magento_Catalog/templates/product/view/attributes.phtml < ?php $_helper = $this->helper('MagentoCatalogHelperOutput'); $_product = $block->getProduct() ?> $block->getChildBlock("MyBlock")->setData("my_data", $_product); echo $block->getChildHtml('MyBlock', false); The line that reads […]