1
Development Help Needed / How to correctly add hook to $this->getHookVar('product_description_array')
« on: January 27, 2025, 07:21:54 PM »
Hi core devs,
I'm found this hook "$this->getHookVar('product_description_array')" in the product.tpl file.
I have tried to add array like this:
It's not working.
I tried to debug in the tpl file and found out that the variable is set as a string contains 'array', not a real array.
I'm found this hook "$this->getHookVar('product_description_array')" in the product.tpl file.
I have tried to add array like this:
Code: [Select]
$tabs['Test'] = [
'title' => $view->fetch('pages/test/test_tab.tpl'),
'html' => $view->fetch('pages/test/test_content.tpl')
];
$that->view->addHookVar('product_description_array',$tabs);
It's not working.
I tried to debug in the tpl file and found out that the variable is set as a string contains 'array', not a real array.