Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

raketa161

Новичок
  
  • Posts

    10
  • Joined

  • Last visited

raketa161's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

-2

Reputation

  1. Сивим, галочку в админке не писать ошибки. (Думаю специально не будут создавать ошибки). Конечно, понимаю, ошибки нужно исправить. Парни, объясните чем грозит вывод этих ошипотому чток, желательно в примере.
  2. Ребят, для того чтобы не показывать ошибки Необходимо: Зайти в Админку -> Система -> Настройки -> Изменить -> Сервер -> Показывать ошибки: НЕТ
  3. добавил, Денвер пишет ошибку: Fatal error: Call to a member function getCityName() on a non-object in Z:\.....\www\system\library\cart.php on line 26 Это строка: $getCityName_m = $this->geoip->getCityName(); полностью файл cart.php <?php class Cart { private $min_total = 1; private $data = array(); public function __construct($registry) { $this->config = $registry->get('config'); $this->customer = $registry->get('customer'); $this->session = $registry->get('session'); $this->db = $registry->get('db'); $this->tax = $registry->get('tax'); $this->weight = $registry->get('weight'); $this->geoip = $registry->get('geoip'); if (!isset($this->session->data['cart']) || !is_array($this->session->data['cart'])) { $this->session->data['cart'] = array(); } } public function getProducts() { if (!$this->data) { $getCityName_m = $this->geoip->getCityName();
  4. progroman, модуль рилииет - отлично, но у меня вопрос ... есть файл по адресу / system / library / cart.php "синдартный" <?php class Cart { private $min_total = 1; private $data = array(); public function __construct($registry) { $this->config = $registry->get('config'); $this->customer = $registry->get('customer'); $this->session = $registry->get('session'); $this->db = $registry->get('db'); $this->tax = $registry->get('tax'); $this->weight = $registry->get('weight'); if (!isset($this->session->data['cart']) || !is_array($this->session->data['cart'])) { $this->session->data['cart'] = array(); } } public function getProducts() { if (!$this->data) { foreach ($this->session->data['cart'] as $key => $quantity) { $product = explode(':', $key); $product_id = $product[0]; и ик дное... в нём есть функция public function getProducts() мне нужно, чтоб в этот функции опрегделялся город, в переменную $getCityName_m. пишу в этот функции public function getProducts() { if (!$this->data) { $getCityName_m = $this->geoip->getCityName(); ........ } Денвер пишет ошибку: Notice: Undefined property: Cart::$geoip in Z:\.....\www\system\library\cart.php on line 25 Fatal error: Call to a member function getCityName() on a non-object in Z:.....\www\system\library\cart.php on line 25 line 25 это $getCityName_m = $this->geoip->getCityName(); progroman, если Вас не затруднит, помогите... Ещё раз повторюсь, модуль рилииет - отлично, что бы не складывалось мнение, что модуль плохо рилииет.
  5. как пользоваться ГЕО сообещёниями? куда всивлять ключ? ------ разобрался сам, не внимательный :oops: вот скрин https://opencart-forum.ru/index.php?app=downloads&module=display&section=screenshot&record=80779&id=888&full=1 если у кого возникнут проблемы. progroman, спасипотому что за труды. Отличный скрипт :eek: но у меня вопрос: в дальнейшем, как обновить список городов России (ФИАС)? Вы брали официальную БД и парсили?
  6. адресс сайи в студаю, пишите мне на почтовый ящик raketa161 @gmail.com (без пробела)
×
×
  • 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.