Jump to content
Sign in to follow this  

Не открывается раздел "Товары" в админке.

Recommended Posts

После установки модуля "Поставщики" перестал открываться раздел Товары в админке.



Opencart Версия 


сообщение от ТТ


Проблема связана с ошибкой в скрипте
FastCGI: server "/hsphere/local/home/gooner/theriddlez.com/fcgi-bin/php-fcgi" stderr: PHP Parse error: syn tax error, unexpected 'public' (T_PUBLIC) in /hsphere/local/home/gooner/theriddlez.com/vqmod/vqcache/vq2-admin_model_catalog_product.php on line 365 

-rw-r--r-- 1 gooner gooner 45111 Nov 24 17:29 /hsphere/local/home/gooner/theriddlez.com/vqmod/vqcache/vq2-admin_model_catalog_product.php 


line 365:     

public function getPopularProducts($limit) {

getPopularProducts я нашел в vqmod/xml/emailtemplate_admin.xml

<file name="admin/model/catalog/product.php">
            <search position="before"><![CDATA[
            public function getProducts( ]]></search>
            public function getPopularProducts( ]]></ignoreif>
            public function getPopularProducts($limit) {
				$product_data = array();
				$query = $this->db->query("SELECT p.product_id FROM " . DB_PREFIX . "product p LEFT JOIN " . DB_PREFIX . "product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '" . (int)$this->config->get('config_store_id') . "' ORDER BY p.viewed, p.date_added DESC LIMIT " . (int)$limit);
				foreach ($query->rows as $result) { 		
					$product_data[$result['product_id']] = $this->getProduct($result['product_id']);
				return $product_data;
			} ]]></add>

Надеюсь я правильно локализовал проблему, но как исправить не знаю. Заранее благодарен.

Edited by gooner

Share this post

Link to post
Share on other sites

Подумал, что может быть проблема не связана с установкой нового модуля. Прошу прощения у модераторов, если создал пост не в той ветке

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.