@
ajeetsingh,
Judging by error messages in the log, there is a problem on 107 line in the classes/XLite/Module/Wevbkulsoftware/PreorderSales/Controller/Admin/Product.php file and I assume that the code you quoted earlier is correct:
Code:
/**
* Page key
*/
const PAGE_VARI = 'preorders';
public function getPages()
{
$list = parent::getPages();
if (!$this->isNew()) {
$list = array_merge(
array_slice($list, 0, 5),
array(static::PAGE_VARI => static::t('PreorderSales')),
array_slice($list, 5)
);
}
return $list;
}
protected function getPageTemplates()
{
$list = parent::getPageTemplates();
if (!$this->isNew()) {
$list = array_merge(
array_slice($list, 0,5),
array(static::PAGE_VARI => 'modules/Webkulsoftware/PreorderSales/preorders/body.twig'),
array_slice($list, 5)
);
}
return $list;
}
Could you please show the full code of that file?
Tony