Jump to content

No aparecen productos dentro de las categorías.


Recommended Posts

Hola a todos.

Estoy revisando una tienda hecha con prestashop 1.5.4 y uno de los problemas con los que me he encontrado es que no muestra los productos por categorias. Una vez accedes a una categoría o subcategoria no hay ni un solo producto. Decir que todos están creados y correctamente asociados a sus correpondientes categorías.

La web en cuestión es: http://www.krissexshop.com

He desactivado las url amigables pero todo sigue igual, las volví a activar y lo mismo.

La plantilla que utiliza es Boutique pero he activado la default y el problema persiste.

He activado para bugs de errores y esto es lo que me ha salido, pero no se interpretarlo....

[PrestaShopDatabaseException]
Unknown column 'stock.out_of_stock' in 'field list'

SELECT p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`available_now`,
					pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, MAX(image_shop.`id_image`) id_image,
					il.`legend`, m.`name` AS manufacturer_name, cl.`name` AS category_default,
					DATEDIFF(product_shop.`date_add`, DATE_SUB(NOW(),
					INTERVAL 20
						DAY)) > 0 AS new, product_shop.price AS orderprice
				FROM `ps_category_product` cp
				LEFT JOIN `ps_product` p
					ON p.`id_product` = cp.`id_product`
				 INNER JOIN ps_product_shop product_shop
		ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
				LEFT JOIN `ps_product_attribute` pa
				ON (p.`id_product` = pa.`id_product`)
				LEFT JOIN `ps_category_lang` cl
					ON (product_shop.`id_category_default` = cl.`id_category`
					AND cl.`id_lang` = 4 AND cl.id_shop = 1 )
				LEFT JOIN `ps_product_lang` pl
					ON (p.`id_product` = pl.`id_product`
					AND pl.`id_lang` = 4 AND pl.id_shop = 1 )
				LEFT JOIN `ps_image` i
					ON (i.`id_product` = p.`id_product`) LEFT JOIN ps_image_shop image_shop
		ON (image_shop.id_image = i.id_image AND image_shop.id_shop = 1 AND image_shop.cover=1)
				LEFT JOIN `ps_image_lang` il
					ON (image_shop.`id_image` = il.`id_image`
					AND il.`id_lang` = 4)
				LEFT JOIN `ps_manufacturer` m
					ON m.`id_manufacturer` = p.`id_manufacturer`
				WHERE product_shop.`id_shop` = 1
					AND cp.`id_category` = 2 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") GROUP BY product_shop.id_product ORDER BY cp.`position` ASC
			LIMIT 0,12at line 607 in file classes/db/Db.php601. 			WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
602. 		}
603. 		else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
604. 		{
605. 			if ($sql)
606. 				throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
607. 			throw new PrestaShopDatabaseException($this->getMsgError());
608. 		}
609. 	}
610. 
611. 	/**
DbCore->displayError - [line 307 - classes/db/Db.php] - [1 Arguments]DbCore->query - [line 482 - classes/db/Db.php] - [1 Arguments]DbCore->executeS - [line 649 - classes/Category.php] - [1 Arguments]CategoryCore->getProducts - [line 282 - modules/cshometab1/TabClass1.php] - [3 Arguments]TabClass1->getProductList - [line 515 - modules/cshometab1/cshometab1.php] - [1 Arguments]CsHomeTab1->getTabsDisplay - [line 559 - modules/cshometab1/cshometab1.php] - [2 Arguments]CsHomeTab1->hookDisplayHome - [line 421 - classes/Hook.php] - [1 Arguments]HookCore::exec - [line 39 - controllers/front/IndexController.php] - [1 Arguments]IndexControllerCore->initContent - [line 167 - classes/controller/Controller.php] - [0 Argument]ControllerCore->run - [line 15 - override/classes/controller/Controller.php] - [0 Argument]Controller->run - [line 349 - classes/Dispatcher.php] - [0 Argument]DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument]

Alguien que me eche una mano?

 

Gracias a todos.

Edited by Inés (see edit history)
Link to comment
Share on other sites

  • nadie locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...