Забираємо білий фон на фото товара Opencart 2

Переглянути відео Забираємо білий фон на фото товара Opencart 2

 

Opencart 2

сайт/catalog/controller/product/product.php

строка 234 (у вас може бути інша строка)

шукаємо

'popup' => $this->model_tool_image->resize($result['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')),

замінюємо на

'popup' => "/image/".$result['image'],

220  (у вас може бути інша строка)

шукаємо

$data['popup'] = $this->model_tool_image->resize($product_info['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height'));

замінюємо на

$data['popup'] = "/image/".$product_info['image'];