Skip to content

magento man

PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in

magento.cron log return error: PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Dom.php:449 Stack trace: #0 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Dom.php(116): MagentoFrameworkConfigDom->_initDom(‘<?xml version=”…’) #1 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/ObjectManager/Config/Reader/Dom.php(70): MagentoFrameworkConfigDom->__construct(‘<?xml version=”…’, Object(MagentoFrameworkAppArgumentsValidationState), Array, ‘xsi:type’, NULL) #2 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(151): MagentoFrameworkObjectManagerConfigReaderDom->_createConfigMerger(‘Magento\Framewo…’, ‘<?xml version=”…’) #3 /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Reader/Filesystem.php(132): MagentoFrameworkConfigReaderFilesystem->_readFiles(Object(MagentoFrameworkConfigFileIterator)) #4 /home/mall/domains/myweb.com/public_html/vendor in… Read More »PHP Fatal error: Uncaught Error: Class ‘DOMDocument’ not found in

What is role of ‘type’ => ‘static’ in Magento 2 data patch?

Recently I saw Setup/Patch/Data with ‘type’ => ‘static’ $eavSetup->addAttribute( MagentoCatalogModelProduct::ENTITY, ‘attribute_code’, [ ‘group’ => ‘General’, ‘label’ => ‘Product Type ID’, ‘type’ => ‘static’, ‘input’ => ‘select’, ‘source’ => VendorModuleModelSourceSource::class, ‘required’ => false, ‘sort_order’ => 1, ‘global’ => Attribute::SCOPE_GLOBAL, ‘used_in_product_listing’ =>… Read More »What is role of ‘type’ => ‘static’ in Magento 2 data patch?

Updating total savings block in cart

I’ve successfully added a total_savings block to my theme. It works well by doing the calculation in the phtml file. themeMagento_Checkoutlayoutcheckout_cart_index.xml: <?xml version=”1.0″?> <page layout=”1column” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceContainer name=”checkout.cart.totals.container”> <block class=”MagentoFrameworkViewElementTemplate” name=”checkout.cart.total.savings” after=”checkout.cart.totals” template=”Magento_Checkout::total_savings.phtml” /> </referenceContainer> </body> </page> But… Read More »Updating total savings block in cart