View Single Post
  #7  
Old 05-20-2015, 09:35 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Custom tabs for product details

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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote