Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
669 views

SKU Report for null attribute values

I am getting all product sku's that does not have a attribute value 'image_link'. I have written this code in magento : $products = Mage::getModel('catalog/product') ->getCollection() ->...
Melvin's user avatar
  • 43
3 votes
0 answers
120 views

Magento 2 : How to get top 10 repeated values in a column using CRUD instead of sql?

I want to get top 10 most repeated values in a column of my table, I can do so using sql but I need to do it using CRUD i.e using collections or model as magento coding standard doesn't allow naked ...
Vivek Kumar's user avatar
  • 5,740
1 vote
1 answer
2k views

Magento 2: How many options do I have to use with addFieldToFilter? [closed]

What out-of-the-box logical conditions can I use with the addFieldToFilter method? $this->addFieldToFilter(); Thanks
Rafael Corrêa Gomes's user avatar
2 votes
1 answer
485 views

Convert normal mysql query with math functions into magento model format

I have the following query in MySQL. I need to convert it for magento. My query is, SELECT latitude, longitude, SQRT( POW(69.1 * (latitude - [startlat]), 2) + POW(69.1 * ([startlng] - ...
Vignesh Bala's user avatar
3 votes
2 answers
3k views

Magento Collection Loading Prematurely

I am pretty new to Magento, and am creating a module to integrate third party reviews with a website I am developing. It's all going well, but I've hit a snag, and I'm at a bit of a loose end with ...
Max Bucknell's user avatar