Skip to content

xml

Auto Added by WPeMatico

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

Cannot insert custom block into ‘product.price.final’ in XML

Here is my catalog_product_view.xml: I want to insert one CustomBlock to this final price block, so i can use getChildHtml() to call in template final_price.phtml, but it does not work so far, why ? <referenceBlock name=”product.price.final”> <block class=”MagentoFrameworkViewElementTemplate” name=”custom.block” template=”CustomModule::custom.phtml”/>… Read More »Cannot insert custom block into ‘product.price.final’ in XML

Add a template content to detail tab

I want to add some content within the product detail tab. I created my template below <referenceContainer name=”product.info.details”> <block class=”MagentoCatalogBlockProductView” name=”additional_product_details” template=”Magento_Catalog::product/view/additional_product_details.phtml” /> </referenceContainer> I tried to use the <move /> syntax to achieve this but was unsuccessful. Please note:… Read More »Add a template content to detail tab

Export correct URL in product feed with XSL

I try to export product URL:s for my Magento 2.3 website using this line of code in an XSL template: <xsl:element name=”link”><xsl:value-of select=”product_url“/></xsl:element> The result creates this URL in the .XML file (which doesn’t work): < link >https://www.domain.com/admin/catalog/product/view/id/2666/s/apple-ipad-2-16gb-wi-fi-vit-toppskick/key/a61acffaa09fed5b95dc91/< /link >… Read More »Export correct URL in product feed with XSL