Доброго всем времени суток.
На старом добром 1.5 сие хорошо работало
$files = glob(DIR_IMAGE . 'data/tov_foto/' . mb_strtolower($product_info['manufacturer']) . '/' . $this->request->get['product_id'] . '_*.*');
if ($files) {
foreach ($files as $image) {
$extension = pathinfo($image, PATHINFO_EXTENSION);
if (in_array(strtolower($extension), array('jpeg', 'jpg', 'png', 'gif'))) {
$file_image = 'image/' . str_replace(DIR_IMAGE, '', $image);
$data['images'][] = array(
'popup' => $this->model_tool_image->resize($file_image, $this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_height')),
'thumb' => $this->model_tool_image->resize($file_image, $this->config->get('theme_' . $this->config->get('config_theme') . '_image_additional_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_additional_height'))
);
}
}
}
Но на OCStore отказалось работать, есть подозрения. что сюда идет некорректный путь
$this->model_tool_image->resize
сейчас он такой и файл там есть
image/data/tov_foto/sony/547855_1.jpg