usmdamir Posted August 10, 2017 Report Share Posted August 10, 2017 добрый день.перестал грузится шаблон страницы товараhttp://ses-creative.ru/products/moj-pervyj-plastilin-4-tsv-otverdevayuschijделал изменения в файле api/products.phpи после этого не грузится шаблон.на данный момент залил из архива с движком этот файл. Quote Link to post Share on other sites
mishanya Posted August 10, 2017 Report Share Posted August 10, 2017 почистите папку compiled Quote Link to post Share on other sites
usmdamir Posted August 10, 2017 Author Report Share Posted August 10, 2017 почистите папку compiledне помогло. обе почистил. Quote Link to post Share on other sites
yr4ik Posted August 10, 2017 Report Share Posted August 10, 2017 включите показ ошибок на сервере.Скорее всего чего то в api/products.php напортачили Quote Link to post Share on other sites
usmdamir Posted August 10, 2017 Author Report Share Posted August 10, 2017 включите показ ошибок на сервере.Скорее всего чего то в api/products.php напортачили включил.ругается вот на это public function get_related_plugin($params, &$smarty) { /*if(!isset($params['old'])) $params['old'] = 1;*/ if(!empty($params['var'])) { foreach($this->products->get_rels_product($params) as $p) $products[$p->id] = $p; Quote Link to post Share on other sites
usmdamir Posted August 10, 2017 Author Report Share Posted August 10, 2017 не знаю, может скорее в платный раздел надо писать.но кто готов исправить все? плюс вернуть старый функционал.все моменты я опишу, что надо дописать. Quote Link to post Share on other sites
yr4ik Posted August 10, 2017 Report Share Posted August 10, 2017 в api products нет функции get_rels_product если она какая то особая - то создайте. А вообще я думаю там должно быть foreach($this->products->get_products($params) as $p) Quote Link to post Share on other sites
Noxter Posted August 10, 2017 Report Share Posted August 10, 2017 + не закрыта скобка } Quote Link to post Share on other sites
yr4ik Posted August 10, 2017 Report Share Posted August 10, 2017 то ТС просто код не дописал. Исходя из ссылки в топе там - то что я написал: Fatal error: Call to undefined method Products::get_rels_product() in /var/www/ses-creative.ru/view/View.php on line 178 Quote Link to post Share on other sites
usmdamir Posted August 11, 2017 Author Report Share Posted August 11, 2017 то ТС просто код не дописал. Исходя из ссылки в топе там - то что я написал: Fatal error: Call to undefined method Products::get_rels_product() in /var/www/ses-creative.ru/view/View.php on line 178закоментировал foreach($this->products->get_rels_product($params) as $p) и заработал шаблон.надстройка с Товар в подарок видимо не заработает, т.к. я в этом файле ее функцию удалил. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.