Skip to content

dashboard

Auto Added by WPeMatico

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

magento 2.4.3 Request validation failed for action “ControllerAdminhtmlImportSave

4.3 admin custom controller redirecting to dashboard <form enctype=”multipart/form-data” method=”post” action=”<?php echo $block->getFormAction(); ?>” id=”edit_form” X-Requested-With= “XMLHttpRequest”> <input name=”form_key” type=”hidden” value=”<?php echo $block->updateCancelTime() ?>” /> <!–<input name=”form_key” type=”hidden” value=”<?php // echo $block->getFormKey() ?>” />–> <div id=”base_fieldset” class=”fieldset “> <table> <tbody>… Read More »magento 2.4.3 Request validation failed for action “ControllerAdminhtmlImportSave