/** * Get valid file system storage root * * @return string */ protected function getStoreFileSystemRoot() { $shipments = $this->getLink()->getManifest()->getShipments(); $path = parent::getStoreFileSystemRoot() . $shipments[0]->getParcel()->getOrder()->getOrderId() . LC_DS; \Includes\Utils\FileManager::mkdirRecursive($path); return $path; }
/** * Get valid file system storage root * * @return string */ protected function getStoreFileSystemRoot() { $path = parent::getStoreFileSystemRoot() . $this->getAttachment()->getProduct()->getProductId() . LC_DS; \Includes\Utils\FileManager::mkdirRecursive($path); return $path; }