Skip to content

sql

Auto Added by WPeMatico

Magento 2 SimiCart – Magento 2 Mobile App Builder

We are using Magento 2.4.2-p2 version with SimiCart – Magento 2 Mobile App Builder We are struggling from where category_id is coming File name – app/code/Simi/Simiconnector/Model/ResourceModel/Productlist/ProductlistCollection.php File function – $collection = $simiObjectManager->create(‘MagentoCatalogModelProduct’)->getCollection() ->addAttributeToSelect($simiObjectManager->get(‘MagentoCatalogModelConfig’) ->getProductAttributes()) ->addMinimalPrice() ->addFinalPrice() ->addTaxPercents() ->addUrlRewrite(); when we… Read More »Magento 2 SimiCart – Magento 2 Mobile App Builder

Constant slow queries from OpenMage / Magento 1.9 probably from Layered Navigation

I’m on OpenMage LTS 20.0.6 installation and while the site doesn’t have much data, it keeps getting a lot of high execution queries that seem related to Layered Navigation +—————————-+—————————————————————————————————————————————————————+ | name | value | +—————————-+—————————————————————————————————————————————————————+ | Version | OpenMage… Read More »Constant slow queries from OpenMage / Magento 1.9 probably from Layered Navigation

Issue with implementing unique_purchases column in main table using leftJoin in Grid ResourceModel

I have a SQL query that does what I need SELECT ipi.*, COALESCE(unique_purchases, 0) AS unique_purchases FROM mst_inventory_planner_inventory AS ipi LEFT JOIN ( SELECT product_id, COUNT(DISTINCT order_id) AS unique_purchases FROM sales_order_item GROUP BY product_id ) AS soi ON ipi.product_id =… Read More »Issue with implementing unique_purchases column in main table using leftJoin in Grid ResourceModel