AbanteCart Development > API Development

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

(1/1)

yonghan79:
Hi core devs,

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

I also hook into storefront product page by using
--- Code: ---onControllerPagesProductProduct_UpdateData
--- End code ---


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

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

I wonder if i missed anything in my code?

Thanks

abolabo:
just add condition with check

if($that->view){
$that->view->assign()....

yonghan79:
Thanks abolabo. I will try it.

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod