View Single Post
  #4  
Old 05-20-2015, 07:28 AM
 
DBK Web Builder DBK Web Builder is offline
 

Advanced Member
  
Join Date: Apr 2014
Location: NJ
Posts: 67
 

Default 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 !
__________________
4.6.2 and 4.6.3
http://www.DBKWebBuilder.com
Reply With Quote