No template found for catalog/product
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);
1413. )) {
1414. return $overridden_template;
1415. }
1416.
1417. return $this->getTemplateFinder()->getTemplate(
1418. $template,
1419. $params['entity'],
1420. $params['id'],
1421. $locale
1422. );
1423. }
Argument [0] catalog/product Argument [1] product Argument [2] 1 Argument [3] fr-FR
1307. * @param string $default_template
1308. */
1309. public function setTemplate($template, $params = [], $locale = null)
1310. {
1311. parent::setTemplate(
1312. $this->getTemplateFile($template, $params, $locale)
1313. );
1314. }
1315.
1316. /**
1317. * Removed in PrestaShop 1.7.
Argument [0] catalog/product Argument [1] Array ( [entity] => product [id] => 1 ) Argument [2] fr-FR
106.
107. $id_product = (int) Tools::getValue('id_product');
108.
109. $this->setTemplate('catalog/product', [
110. 'entity' => 'product',
111. 'id' => $id_product,
112. ]);
113.
114. if ($id_product) {
115. $this->product = new Product($id_product, true, $this->context->language->id, $this->context->shop->id);
116. }
Argument [0] catalog/product Argument [1] Array ( [entity] => product [id] => 1 )
282. /**
283. * Starts the controller process (this method should not be overridden!).
284. */
285. public function run()
286. {
287. $this->init();
288. if ($this->checkAccess()) {
289. // setMedia MUST be called before postProcess
290. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
291. $this->setMedia();
292. }
513. if (isset($params_hook_action_dispatcher)) {
514. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
515. }
516.
517. // Running controller
518. $controller->run();
519.
520. // Execute hook dispatcher after
521. if (isset($params_hook_action_dispatcher)) {
522. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
523. }
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();