Jump to content
Sign in to follow this  

Проблема при установке модуля доп.вкладки

Recommended Posts

Добрый день!

Подскажите пожалуйста в чём может быть проблема, залил модуль Extra Product Tabs, а при заходе на сайт выдаётся ошибка:

Parse error: syntax error, unexpected T_PUBLIC in /home/httpd/vhosts/сайт/httpdocs/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 913

По данному пути следующий код:


public function getTotalProductSpecials() {
if ($this->customer->isLogged()) {
$customer_group_id = $this->customer->getCustomerGroupId();
} else {
$customer_group_id = $this->config->get('config_customer_group_id');

$query = $this->db->query("SELECT COUNT(DISTINCT ps.product_id) AS total FROM " . DB_PREFIX . "product_special ps LEFT JOIN " . DB_PREFIX . "product p ON (ps.product_id = p.product_id) LEFT JOIN " . DB_PREFIX . "product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= '" . $this->NOW . "' AND p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' AND ps.customer_group_id = '" . (int)$customer_group_id . "' AND ((ps.date_start = '0000-00-00' OR ps.date_start < '" . $this->NOW . "') AND (ps.date_end = '0000-00-00' OR ps.date_end > '" . $this->NOW . "'))");

if (isset($query->row['total'])) {
return $query->row['total'];
} else {
return 0; 
}  (913 СТРОКА)


Share this post

Link to post
Share on other sites

Судя по адресу ссылки, это кэш - нужно зайти на сайт /vqmod/vqcache/ и почистить ( удалить ) все файлы этой папки 

После зайди на сервер / инструменты / версия PHP / выбери свою версию и кликни на нее 2 раза ( запусти ) сервер перезагрузится за 10 секунд и готово 

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.


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.