Quote:
Originally Posted by DBK Web Builder
Hmm - this did not work
if($product.categoryid == '49') {
$product_tabs[] = array(
'title' => func_get_langvar_by_name('lbl_tab1cat'),
'tpl' => 'modules/Extra_Fields/tab1cat1.tpl',
'anchor' => 'Data'
);
}
|
Remember the difference between PHP and Smarty. You can't use Smarty style code in a PHP file!!
if($product.categoryid == '49')
Should be:
if($product['categoryid'] == 49)
That is, if it is even assigned or available in the context you are in.
One of the modules Steve mentioned might really help.