How to get last created product id?
-
30-10-2019 - |
Pergunta
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();
Nenhuma solução correta
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange