MCQs > IT & Programming > Magento > Which snippet of codes can be used to get the latest n products?

Magento MCQs

Which of the following snippet of codes can be used to get the latest n products?

Answer

Correct Answer: $collection = Mage::getModel('catalog/product')->getCollection(); $collection->getSelect()->order('entity_id desc')->limit(n);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Magento Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Magento Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it