Skip to content

magento2.4

Auto Added by WPeMatico

how to get SUM of value from the collection?

I’m trying to get some of the values from the collection, below is my code. <?php public function RentalPartnerRevenue() { $filter = $this->request->getParam(‘filter’); $operator_id = $this->request->getParam(‘operator_id’); try{ $completecollection1 = $this->_orderCollectionFactory->create() ->addAttributeToSelect(‘*’); if(isset($filter) && $filter == ‘totalrevenue’){ //$completecollection1->addAttributeToSelect(‘grand_total’)->getColumnValues(‘grand_total’); $completecollection1->getSelect()->joinLeft( ‘rider_detail as… Read More »how to get SUM of value from the collection?

Class “MagentoFrameworkComponentComponentRegistrar” not found in setup/src/Magento/Setup/registration.php:9

When I run “composer install or “composer update” command from my magento 2.4.5 root folder I am getting this error. – Installing laminas/laminas-dependency-plugin (2.4.0): Extracting archive PHP Fatal error: Uncaught Error: Class “MagentoFrameworkComponentComponentRegistrar” not found in /public_html/setup/src/Magento/Setup/registration.php:9 Stack trace: #0… Read More »Class “MagentoFrameworkComponentComponentRegistrar” not found in setup/src/Magento/Setup/registration.php:9

mini_cart_product_thumbnail not sizing to values set in etc/view.xml

I have my image sizes set in my app/design/frontend/My_Design/My_Theme/etc/view.xml but for some reason, the values for mini_cart_product_thumbnail are not being used in the minicart. <view xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Config/etc/view.xsd”> <media> <images module=”Magento_Catalog”> … <image id=”mini_cart_product_thumbnail” type=”thumbnail”> <width>76</width> <height>76</height> </image> … </images> </media>… Read More »mini_cart_product_thumbnail not sizing to values set in etc/view.xml