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

tarkensan

Newbie
  
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

tarkensan's Achievements

Rookie

Rookie (2/14)

  • Conversation Starter
  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Уже пробовал, код стал выглядеть так: <?php class ModelShippingCitylink extends Model { function getQuote($address) { $this->load->language('shipping/citylink'); if ($this->config->get('citylink_status')) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int)$this->config->get('citylink_geo_zone_id') . "' AND country_id = '" . (int)$address['country_id'] . "' AND (zone_id = '" . (int)$address['zone_id'] . "' OR zone_id = '0')"); if (!$this->config->get('citylink_geo_zone_id')) { $status = TRUE; } elseif ($query->num_rows) { $status = TRUE; } else { $status = FALSE; } } else { $status = FALSE; } $method_data = array(); if ($status) { $cost = 0; $weight = $this->cart->getWeight(); $rates = explode(',', $this->config->get('citylink_rate')); foreach ($rates as $rate) { $data = explode(':', $rate); if ($data[0] >= $weight) { if (isset($data[1])) { $cost = $data[1]; } break; } } $quote_data = array(); if ((float)$cost) { $quote_data['citylink'] = array( 'id' => 'citylink.citylink', 'title' => $result['name'], 'cost' => $cost, 'tax_class_id' => $this->config->get('citylink_tax_class_id'), 'text' => $this->currency->format($this->tax->calculate($cost, $this->config->get('citylink_tax_class_id'), $this->config->get('config_tax'))) ); $method_data = array( 'id' => 'citylink', 'title' => $this->language->get('text_title'), 'quote' => $quote_data, 'sort_order' => $this->config->get('citylink_sort_order'), 'error' => FALSE ); } } return $method_data; } } ?> Но такой вариант почему-то у меня не работает. Может какую-то скобку или запятую упустил в коде?
  2. Хочу немного откорректировать модуль "Доставка по городу". А именно: Доставка по городу Доставка по городу (Вес: 0.00g)Заменить на Доставка по городу Доставка по городуТ.е. убрать из этого модуля отображение веса. Сам модуль я так понимаю, лежит по следующему пути: catalog/model/shipping/citylink.php Вот его содержание: <?php class ModelShippingCitylink extends Model { function getQuote($address) { $this->load->language('shipping/citylink'); if ($this->config->get('citylink_status')) { $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int)$this->config->get('citylink_geo_zone_id') . "' AND country_id = '" . (int)$address['country_id'] . "' AND (zone_id = '" . (int)$address['zone_id'] . "' OR zone_id = '0')"); if (!$this->config->get('citylink_geo_zone_id')) { $status = TRUE; } elseif ($query->num_rows) { $status = TRUE; } else { $status = FALSE; } } else { $status = FALSE; } $method_data = array(); if ($status) { $cost = 0; $weight = $this->cart->getWeight(); $rates = explode(',', $this->config->get('citylink_rate')); foreach ($rates as $rate) { $data = explode(':', $rate); if ($data[0] >= $weight) { if (isset($data[1])) { $cost = $data[1]; } break; } } $quote_data = array(); if ((float)$cost) { $quote_data['citylink'] = array( 'id' => 'citylink.citylink', 'title' => $this->language->get('text_title') . ' (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class')) . ')', 'cost' => $cost, 'tax_class_id' => $this->config->get('citylink_tax_class_id'), 'text' => $this->currency->format($this->tax->calculate($cost, $this->config->get('citylink_tax_class_id'), $this->config->get('config_tax'))) ); $method_data = array( 'id' => 'citylink', 'title' => $this->language->get('text_title'), 'quote' => $quote_data, 'sort_order' => $this->config->get('citylink_sort_order'), 'error' => FALSE ); } } return $method_data; } } ?> Что именно необходимо заменить в этом модуле, дабы убрать отображение веса товара? Полагаю что за это отвечает строчка: 'title' => $result['name'] . ' (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('config_weight_class')) . ')',Но сколько не пробовал редактировать, успешного результата так и не добился. Может не там смотрю?
  3. У меня аналогично Internal Server Error вылетает при попытке использовать ЧПУ. В файл .htaccess размещаю следующий код Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)?*$ index.php?_route_=$1 [L,QSA] AllowOwerride All Как только изменения сохраняю - появляется ошибка Internal Server Error. Если очистить файл - ошибка пропадает. Подскажите в каком направлении копать? ---- Вопрос решил, у кого ошибка Internal Server Error: Замените ВСЕ содержимое файла .htaccess следующим кодом: Options +FollowSymlinks Options -Indexes <FilesMatch "\.tpl"> Order deny,allow Deny from all </FilesMatch> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
  4. Приветствую друзья. Помогите советом, никак не могу найти файл, в котором хранится Title: "Категории" Нашел файл www\admin\language\russian\module\category.php - но если там изменить название "Категории" на другое, то оно меняется только в панели администратора, а для пользователя выводится все прежнее.
  5. Суть вопроса в следующем: если пользователь переходит в какую-то категорию на сайте, при этом в строке поиска введет какой-то запрос, то поиск по умолчанию осуществляется только по этой категории, где находится пользователь. Я же по умолчанию хочу реализовать поиск по всем категориям. Подскажите в какую сторону смотреть.
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.