Jump to content
  • 0

Zalogowany klient nie widzi produktów


maksww

Question

Witam

problem polega na tym że klient który się zaloguje nie widzi produktów 

Wywala taki błąd 

[PrestaShopDatabaseException]
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ) ORDER BY `level_depth` ASC, cs.`position` ASC' at line 12


			SELECT c.id_parent, c.id_category, cl.name, cl.description, cl.link_rewrite
			FROM `ps_category` c
			INNER JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND cl.`id_lang` = 1 AND cl.id_shop = 1 )
			INNER JOIN `ps_category_shop` cs ON (cs.`id_category` = c.`id_category` AND cs.`id_shop` = 1)
			WHERE (c.`active` = 1 OR c.`id_category` = 2)
			AND c.`id_category` != 1
			 AND `level_depth` <= 7
			AND nleft >= 62 AND nright <= 63
			AND c.id_category IN (
				SELECT id_category
				FROM `ps_category_group`
				WHERE `id_group` IN ()
			)
			ORDER BY `level_depth` ASC, cs.`position` ASC

at line 746 in file classes/db/Db.php
741.         if ($webservice_call && $errno) {
742.             $dbg = debug_backtrace();
743.             WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
744.         } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
745.             if ($sql) {
746.                 throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
747.             }
748. 
749.             throw new PrestaShopDatabaseException($this->getMsgError());
750.         }
751.     }
DbCore->displayError - [line 378 - classes/db/Db.php] - [1 Arguments]
DbCore->query - [line 597 - classes/db/Db.php] - [1 Arguments]
DbCore->executeS - [line 117 - modules/ps_categorytree/ps_categorytree.php] - [1 Arguments]
Ps_CategoryTree->getCategories - [line 300 - modules/ps_categorytree/ps_categorytree.php] - [1 Arguments]
Ps_CategoryTree->getWidgetVariables - [line 281 - modules/ps_categorytree/ps_categorytree.php] - [2 Arguments]

Dodałem nowy produkt,  i kategorie.

Produkt jest widoczny ale po próbie przejścia na stronę produktu wyskakuje komunikat 

Nie masz dostępu do tego produktu.

Proszę o pomoc

Pozdrawiam 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Mialem taki sam problem jak stworzyłem dodatkowe grupy klientów. Przypisani klienci do nowej grupy nie widzieli produktów w podkategoriach. Rozwiązaniem było wejście w edycje kategorii i na samym dole dodanie kategorii dla wszystkich grup klientów. 

Zrzut ekranu 2018-07-20 o 11.10.52.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...