Skip to content

How Magento validate products in cart for carts price rule and how to extract product from conditions_serialized column of the sale rules table?

I need to create an indexer for cart price rules. I decided to iterate the values from sales_rules table and extract the products from conditions_serialized coloumn. My indexer file is like below.i Will share the executeFull method only here public… Read More »How Magento validate products in cart for carts price rule and how to extract product from conditions_serialized column of the sale rules table?

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