Re: Custom tabs for product details
What if I want different tabs for different categories ?
Can I create them all in the include/product_tabs.php file
then do some sort of if {$product.categoryid eq 23 } do this ... But that will change the content - but not the tab
I dont think I can put the $product.categoryid != 23 in the file that creates the tabs - cause it won't know yet will it ?
$product_tabs[] = array(
'title' => func_get_langvar_by_name('lbl_tab2'),
'tpl' => 'modules/Extra_Fields/tab2.tpl',
'anchor' => 'Information'
);
$product_tabs[] = array(
'title' => func_get_langvar_by_name('lbl_tab3'),
'tpl' => 'modules/Extra_Fields/tab3.tpl',
'anchor' => 'Pricing'
);
if($product_categoryid == 23) { add this tab ... else add a different tab ?
I suppose I should just go try it !
|