View Single Post
  #4  
Old 05-06-2017, 01:02 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: how to get a product root category name?

Quote:
Originally Posted by qualiteam
I think X-Cart 4 doesn't pass information on the product's category to the product page template, so you should tweak product.php first: use the func_get_category_data() function to load information on the category and send it to the template with $smarty->assign('NAME_OF_SMARTY_VARIABLE', $DATA).
Root category info should be present on all pages as it is used to display category menus.

See how $categories_menu_list is used in customer/categories.tpl.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote