| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
how to get a product root category name? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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?
__________________
x-cart gold 4.7.12 http://www.prescriptionglasses123.com/ http://www.glassespeople.com http://www.loupesusa.com http://www.eyeglassesclub.com |
|||||||
#2
|
|||||||||
|
|||||||||
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).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: how to get a product root category name?
would you pls teach me the details? tks
__________________
x-cart gold 4.7.12 http://www.prescriptionglasses123.com/ http://www.glassespeople.com http://www.loupesusa.com http://www.eyeglassesclub.com |
|||||||
#4
|
|||||||||
|
|||||||||
Re: how to get a product root category name?
Quote:
See how $categories_menu_list is used in customer/categories.tpl. |
|||||||||
#5
|
|||||||
|
|||||||
Re: how to get a product root category name?
You could get it from the breadcrumb...
Code:
__________________
xcartmods.co.uk |
|||||||
|
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|