View Single Post
  #9  
Old 08-03-2017, 05:46 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Have problem with product varient module

@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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote