Skip to content

magento man

sales by payment type reports display in dashboard in magento 2

Block-> <?php namespace Block; use MagentoPaymentApiPaymentMethodListInterface; class AllPayment extends MagentoFrameworkViewElementTemplate { protected $_paymentConfig; protected $_scopeConfigInterface; public function __construct( MagentoBackendBlockTemplateContext $context, MagentoPaymentModelConfig $paymentConfig, MagentoFrameworkAppConfigScopeConfigInterface $scopeConfigInterface, array $data = [] ) { $this->_paymentConfig = $paymentConfig; $this->_scopeConfigInterface = $scopeConfigInterface; parent::__construct($context, $data); } public… Read More »sales by payment type reports display in dashboard in magento 2