diff --git a/packages/Webkul/Velocity/src/Http/Controllers/Admin/ConfigurationController.php b/packages/Webkul/Velocity/src/Http/Controllers/Admin/ConfigurationController.php index ed12bded3..c738668d7 100644 --- a/packages/Webkul/Velocity/src/Http/Controllers/Admin/ConfigurationController.php +++ b/packages/Webkul/Velocity/src/Http/Controllers/Admin/ConfigurationController.php @@ -110,16 +110,6 @@ class ConfigurationController extends Controller } } - if (isset($params['product_view_images'])) { - foreach ($params['product_view_images'] as $index => $productViewImage) { - if ($productViewImage !== "") { - $params['product_view_images'][$index] = $this->uploadImage($productViewImage, $index); - } - } - - $params['product_view_images'] = json_encode($params['product_view_images']); - } - $params['advertisement'] = json_encode($params['advertisement']); $params['home_page_content'] = str_replace('=>', '=>', $params['home_page_content']); @@ -209,33 +199,6 @@ class ConfigurationController extends Controller return $saveImage; } - /** - * Upload image. - * - * @param array $image - * @param int $index - * @return mixed - */ - public function uploadImage($image, $index) - { - $type = 'product_view_images'; - - $file = $type . '.' . $index; - $dir = "velocity/$type"; - - if (request()->hasFile($file)) { - Storage::delete($dir . $file); - - $imagePath = request()->file($file)->store($dir); - - if ($image->getMimeType() === 'image/svg') { - $this->sanitizeSVG($imagePath); - } - } - - return $imagePath ?? ''; - } - /** * Manage add images. * diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/products/view.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/products/view.blade.php index 943b0a54a..e3a41d81e 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/products/view.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/products/view.blade.php @@ -205,19 +205,6 @@ @include('shop::products.view.related-products') @include('shop::products.view.up-sells') - -
{!! view_render_event('bagisto.shop.products.view.after', ['product' => $product]) !!} @endsection