support

Author Topic: Unknown Error: AbanteCart core v.1.3.0 Call to a member function batchAssign()  (Read 8207 times)

Offline yonghan79

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +21/-0
    • View Profile
Hi core devs,

I am using trying to add some product info in cart lib by using the
Code: [Select]
onACart_ProccessData() and the method is
Code: [Select]
ACart::buildProductDetails
I also hook into storefront product page by using
Code: [Select]
onControllerPagesProductProduct_UpdateData

I pass the additional data by using
Code: [Select]
$that->view->batchAssign( $this->data ); and using
Code: [Select]
$that->processTemplate( 'pages/xxxx/xxxx.tpl' );
When i open the product page i get
Code: [Select]
Unknown Error:  AbanteCart core v.1.3.0 Call to a member function batchAssign() on null and
Code: [Select]
Unknown Error:  AbanteCart core v.1.3.0 Call to undefined method ACart::processTemplate()
I wonder if i missed anything in my code?

Thanks
« Last Edit: May 01, 2021, 07:03:34 AM by yonghan79 »

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2067
  • Karma: +326/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
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

Offline yonghan79

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +21/-0
    • View Profile
Thanks abolabo. I will try it.

 

Powered by SMFPacks Social Login Mod