Skip to content

magento man

Getting error after overwrite core file of sitemap module. magento2

I have successfully overwrite core file: MagentoSitemapModelResourceModelCatalogProduct but getting error in public function getCollection($storeId) for this: $this->scopeConfig->isSetFlag and $this->getConnection() method not found. When try to overwrite whole file getting this error: Incompatible argument type: Required type: MagentoSitemapHelperData. Actual type: string;… Read More »Getting error after overwrite core file of sitemap module. magento2

Add Custom Field to Braintree Credit Card Payment Method in Magento 2.4

I want to add the custom field i.e. po_number in the braintree credit card method in the payment page. Here is the code which I have added for field. <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” layout=”1column” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”checkout.root”> <arguments> <argument… Read More »Add Custom Field to Braintree Credit Card Payment Method in Magento 2.4