Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation on 12/16/2025 in Posts

  1. $image_w = (int)$this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_width'); $image_h = (int)$this->config->get('theme_' . $this->config->get('config_theme') . '_image_popup_height'); $base = $this->request->server['HTTPS'] ? $this->config->get('config_ssl') : $this->config->get('config_url'); if (!empty($product_info['image']) && is_file(DIR_IMAGE . $product_info['image'])) { $src = @getimagesize(DIR_IMAGE . $product_info['image']); if ($src && ($src[0] < $image_w || $src[1] < $image_h)) { // мале — не збільшуємо $data['thumb'] = $base . 'image/' . $product_info['image']; $data['popup'] = $base . 'image/' . $product_info['image']; } else { // нормальне — як було $data['thumb'] = $this->model_tool_image->resize($product_info['image'], $image_w, $image_h); $data['popup'] = $this->model_tool_image->resize($product_info['image'], $image_w, $image_h); } } так робити неправильно, але якщо треба то робіть собі на здоровля А і там ще є отримання зображень, а не тільки головного, там зробіть по цьому прикладу. Має працювати.
    2 points
  2. бо відбулися зміни в роботі форуму для розробників що зробило неприбуткову для мене справу в збиткову
    1 point
  3. Спасибо за ответ! Оплатил.
    1 point
  4. 1 point
  5. Так це питання не має ніякого відношення до шаблону ) Так працює опенкарт з ресайзами
    1 point
  6. Можна і так catalog/model/catalog/category.php ось це public function getCategories($parent_id = 0) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "category c LEFT JOIN " . DB_PREFIX . "category_description cd ON (c.category_id = cd.category_id) LEFT JOIN " . DB_PREFIX . "category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '" . (int)$parent_id . "' AND cd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND c2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND c.status = '1' ORDER BY c.sort_order, LCASE(cd.name)"); return $query->rows; } змінити на це public function getCategories($parent_id = 0) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "category c LEFT JOIN " . DB_PREFIX . "category_description cd ON (c.category_id = cd.category_id) LEFT JOIN " . DB_PREFIX . "category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.parent_id = '" . (int)$parent_id . "' AND cd.language_id = '" . (int)$this->config->get('config_language_id') . "' AND c2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND c.status = '1' AND c.sort_order >= 0 ORDER BY c.sort_order, LCASE(cd.name)"); return $query->rows; }
    1 point
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.