| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Direct Link to parent category | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Just say I have one category:
Intel and underneath this 'parent' category I have 3 subcategories: Celeron Pentium Pentium Mobile If a customer is viewing the products listed in the "Pentium" category, but wants to 'jump back' one level to "Intel" - is there a way I can provide such a direct link back to this 'parent' category? I want to achieve this *without* using the full length breadcrumbs (location.tpl). I had a stab at this, but the code below produces a link for the *current* category - if somebody knows how to refer to the *2nd* last element of the $location array I think it might do the trick: Code:
__________________
xcart 3.5.10 [unix] PHP 4.3.8 MySQL 4.0.20 |
|||||||
#2
|
|||||||
|
|||||||
![]() I pasted this elsewhere, but it might be useful here too..
Hi Everyone found it. For anyone else with a similar problem: $location[1].1 will give the immediate parent category id. Cheers.
__________________
xcart 3.5.10 [unix] PHP 4.3.8 MySQL 4.0.20 |
|||||||
#3
|
|||||||
|
|||||||
![]() Actually, this is not COMPLETE. Please disregard till next post...
__________________
xcart 3.5.10 [unix] PHP 4.3.8 MySQL 4.0.20 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|