protected function _postUpdate() { parent::_postUpdate(); // Update sku if (empty($this->sku) || !empty($this->_modifiedFields['product_id'])) { $this->_updateSku(); } }
protected function _postUpdate() { parent::_postUpdate(); if (array_key_exists('photo_url', $this->_modifiedFields)) { $previousPhotoUrl = $this->_cleanData['photo_url']; if (!empty($previousPhotoUrl) && file_exists($previousPhotoUrl)) { @unlink($previousPhotoUrl); } } }
protected function _postUpdate() { // Update product $product = $this->getProduct(); $product->setFromArray($this->getProductParams()); $product->save(); parent::_postUpdate(); }