No template found for catalog/listing/category
at line 68 in file classes/Smarty/TemplateFinder.php
63. return $tpl;
64. }
65. }
66. }
67.
68. throw new PrestaShopException('No template found for ' . $template);
69. }
70.
71. private function getTemplateHierarchy($template, $entity, $id)
72. {
73. $entity = basename($entity ?? '');
1479. )) {
1480. return $overridden_template;
1481. }
1482.
1483. return $this->getTemplateFinder()->getTemplate(
1484. $template,
1485. $params['entity'],
1486. $params['id'],
1487. $locale
1488. );
1489. }
1356. * @param string $template
1357. */
1358. public function setTemplate($template, $params = [], $locale = null)
1359. {
1360. parent::setTemplate(
1361. $this->getTemplateFile($template, $params, $locale)
1362. );
1363. }
1364.
1365. /**
1366. * Removed in PrestaShop 1.7.
634. } else {
635. $variables = $this->getProductSearchVariables();
636. $this->context->smarty->assign([
637. 'listing' => $variables,
638. ]);
639. $this->setTemplate($template, $params, $locale);
640. }
641. }
642.
643. abstract public function getListingLabel();
644.
134. ) {
135. $this->doProductSearch(
136. 'catalog/listing/category',
137. [
138. 'entity' => 'category',
139. 'id' => $this->category->id,
140. ]
141. );
142. }
143. }
144.
314. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
315. $this->initHeader();
316. }
317.
318. if ($this->viewAccess()) {
319. $this->initContent();
320. } else {
321. $this->errors[] = $this->trans('Access denied.', [], 'Admin.Notifications.Error');
322. }
323.
324. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
505.
506. // Execute hook dispatcher
507. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
508.
509. // Running controller
510. $controller->run();
511.
512. // Execute hook dispatcher after
513. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
514. } catch (PrestaShopException $e) {
515. $e->displayMessage();
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();