I’m extending the oxarticle class, and don’t have any problem with that, but when I try to use a function from the parent class, I always get Function ‘getVariantsCount’ does not exist or is not accessible!
Anyone can point me what i’m doing wrong?
public function getVar()
{
return parent::getVariantsCount();
}
public function checkAdminVATMode(){
if($this->getConfig()->getConfigParam('blEnterNetPrice')){
return true;
}
return false;
}
All my custom function are working without a problem, but when i try to call a function in my productmain.tpl from oxarticle(like getVariantsCount) i get Function ‘getVariantsCount’ does not exist or is not accessible!
public function getVar()
{
return parent::getVariantsCount();
}
I think this is not working, the function name must be the same I think public function getVariantsCount()
All my custom function are working without a problem, but when i try to call a function in my productmain.tpl from oxarticle(like getVariantsCount) i get Function ‘getVariantsCount’ does not exist or is not accessible!
oxarticle is a model and no controller, only controller functions you can use in frontend templates like $oView->...