Marta Posted yesterday at 01:52 PM Posted yesterday at 01:52 PM (edited) Hello, while trying to import new products (csv import) I get the following: None of the new products gets imported with images. Edited yesterday at 01:55 PM by Marta
0 the.rampage.rado Posted yesterday at 02:44 PM Posted yesterday at 02:44 PM Please, check if your AdminImportController has the following fix: https://github.com/thirtybees/thirtybees/commit/a15ff326ca0917f14e741818a1d7bc006de13dd5 It should be there as it should be part of thirty bees 1.6 but...
0 Marta Posted yesterday at 02:59 PM Author Posted yesterday at 02:59 PM There is: // Ensure the directory exists, or create it dynamically if (!is_dir($path)) { if (!mkdir($path, 0755, true) || !is_dir($path)) { $errors[] = sprintf(Tools::displayError("Failed to create directory '%s'"), $path); return false; } } // Create the new source image file $imageExtension = ImageManager::getDefaultImageExtension(); $targetFile = $path . $filename . '.' . $imageExtension; if (! ImageManager::convertImageToExtension($tmpfile, $imageExtension, $targetFile)) { $error = sprintf(Tools::displayError("Failed to convert uploaded file to '%s' image format"), $imageExtension); $errors[] = $error; return false; } if ($regenerate) { // Generate all image types for source image ImageManager::generateImageTypesByEntity($entityType, $idEntity); } return true; } finally { if (file_exists($tmpfile)) { unlink($tmpfile); } } }
0 the.rampage.rado Posted yesterday at 03:27 PM Posted yesterday at 03:27 PM I assume you are able to access the remote images in your browser?
0 Marta Posted yesterday at 04:57 PM Author Posted yesterday at 04:57 PM No, I'm not. 🙃 Thx. It was a stupid mistake in the path. Solved. 1
Question
Marta
Hello,
while trying to import new products (csv import) I get the following:
None of the new products gets imported with images.
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now