Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Unknown Error: AbanteCart core v.1.3.0 Call to a member function batchAssign()

Started by yonghan79, May 01, 2021, 06:19:02 AM

Previous topic - Next topic

yonghan79

Hi core devs,

I am using trying to add some product info in cart lib by using the onACart_ProccessData() and the method is ACart::buildProductDetails

I also hook into storefront product page by using onControllerPagesProductProduct_UpdateData

I pass the additional data by using $that->view->batchAssign( $this->data ); and using $that->processTemplate( 'pages/xxxx/xxxx.tpl' );

When i open the product page i get Unknown Error:  AbanteCart core v.1.3.0 Call to a member function batchAssign() on null and Unknown Error:  AbanteCart core v.1.3.0 Call to undefined method ACart::processTemplate()

I wonder if i missed anything in my code?

Thanks

abolabo

just add condition with check

if($that->view){
$that->view->assign()....
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens


Forum Rules Code of conduct
AbanteCart.com 2010 -