How to get last created product id?
-
30-10-2019 - |
Вопрос
I have overridden the Mage_ImportExport_Model_Import_Entity_Abstract
class and in the function _saveValidatedBunches()
I want to get the last created product Id. I've tried the following, but it returns null.
$collection = Mage::getModel('catalog/product')->getCollection();
$latestItemId = $collection->getLastItem()->getId();
Нет правильного решения
Не связан с magento.stackexchange