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

martovytskyi87

Newbie
  
  • Posts

    33
  • Joined

  • Last visited

Everything posted by martovytskyi87

  1. Как настроить ЧПУ на статические страницы opencart3 ? Например index.php?route=account/account в account SEO PRO не использую, В SEO URL прописывал, толку нет.
  2. При входе в личный кабинет или в админку в хроме, браузер виснет и не загружается. Другие браузеры все норм. Кеш и куки чистил. Если меняю пароль, то все ок. Как можно исправить?
  3. Решил проблему так: header.php $this->load->model('catalog/p_review'); $p_review_total = $this->model_sale_order->getTotalReviews(''); $data['p_review_total'] = $p_review_total; $data['review'] = $this->url->link('catalog/p_review', 'user_token=' . $this->session->data['user_token'] . '&status=0', true); model/p_review.php public function getTotalReviews($status) { $query = $this->db->query("SELECT COUNT(*) AS total FROM " . DB_PREFIX . "p_review WHERE status = '" . $status . "'"); return $query->row['total']; }
  4. Есть модуль с отзывами. Пытаюсь в админке вывести уведомление о новом отзыве admin/controller/catalog/p_review.php: $p_review_total = $this->model_catalog_p_review->getTotalReviews(); $data['p_reviewtotal'] = $p_review_total; $results = $this->model_catalog_p_review->getReviews($filter_data); header.php // Reviews $this->load->model('catalog/p_review'); $p_reviewtotal = $this->model_catalog_p_review->getTotalReviews(array('status' => 0)); $data['p_reviewtotal'] = $p_reviewtotal; $data['p_review'] = $this->url->link('catalog/p_review', 'user_token=' . $this->session->data['user_token'] . '&status=0', true); header.twig {% if p_review_total >= 1 %} <li class="dropdown"><a href="{{ p_review }}"> <i class="fa fa fa-comments-o fa-lg blinking" style="color:green"></i> <span style="font-size: 10px">{{ text_review }}</span> <sub>{{ text_new_review }}: ({{ review_total }})</sub></a></li> {% endif %} Получаю ошибку Fatal error: Uncaught Error: Call to a member function getTotalReviews() on null Как правильно вывести количество?
  5. Сделал по промеру product/product, получаю 0, хотя отзывы есть
  6. Пытаюсь вывести количество отзывов. Прошу помочь правильно достучаться к переменной. Есть контроллер с отзывами review.php if ($data['field_rating']) { $data['rating'] = (int)$this->model_catalog_p_review->getRating($product_id); $rating_total = (int)$this->model_catalog_p_review->getRatingTotal($product_id); $data['rating_total'] = $rating_total ? sprintf($this->language->get('text_rating_total'), $rating_total) : $this->language->get('text_no_rating'); } else { $data['rating'] = array(0); $data['rating_total'] = $this->language->get('text_no_rating'); } нужно из файла catalog/view/theme/default/template/product/category.twig достучаться к catalog/controller/product/review.php ? <span class="count-reviews">{{ product.rating_total }}</span> Как правильно?
  7. Прошу помощи. Сайт в разработке на localhost, получил ошибку: Сайт выполнил переадресацию слишком много раз. .htaccess стандартный, куки чистил, модификаторы обновлял. Как еще можно победить ошибку?
  8. Приветствую. Прошу подсказать, как реализовать загрузку картинки в стандартные отзывы ocstore? Возможно есть бесплатный модуль?
×
×
  • 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.