how to get a product root category name?
i am testing x-cart v4.7.
how to get a product root category name at the product page, pls? |
Re: how to get a product root category name?
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).
|
Re: how to get a product root category name?
would you pls teach me the details? tks
|
Re: how to get a product root category name?
Quote:
See how $categories_menu_list is used in customer/categories.tpl. |
Re: how to get a product root category name?
You could get it from the breadcrumb...
Code:
{foreach $location item=l name=location} |
All times are GMT -8. The time now is 06:29 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.