feat: replace raw image path input with interactive visual gallery and multi-image manager in admin and shop
This commit is contained in:
@@ -780,9 +780,14 @@ class MakerWorldService
|
||||
if (! $existingProduct->makerworld_collection_id) {
|
||||
$updates['makerworld_collection_id'] = $collection->id;
|
||||
}
|
||||
if (empty($existingProduct->gallery_images) && ! empty($design['designExtension']['design_pictures'])) {
|
||||
$formatted = $this->formatDesignForImport($design);
|
||||
$updates['gallery_images'] = $formatted['gallery_images'];
|
||||
if (empty($existingProduct->gallery_images)) {
|
||||
$full = (! empty($design['designExtension']['design_pictures']))
|
||||
? $design
|
||||
: ($this->getDesignDetails($designId) ?? $design);
|
||||
$formatted = $this->formatDesignForImport($full);
|
||||
if (! empty($formatted['gallery_images'])) {
|
||||
$updates['gallery_images'] = $formatted['gallery_images'];
|
||||
}
|
||||
}
|
||||
if (empty($existingProduct->print_info)) {
|
||||
$formatted = $this->formatDesignForImport($design);
|
||||
|
||||
Reference in New Issue
Block a user