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