| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Search Results window title: more descriptive | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
I have gotten x-cart to pass the in_category part of the seach query into a global variable that I have used to do other things on my site (like making mod sort work the way i want it to). I want to use it now to make the title of the search results more informative so when I use hard-coded search links they appear to function a bit nicer. If anyone wants instructions on passing search query bits into global variables I will share the process Б─⌠ it is very simple. So now that I have this variable that contains a category ID, what do i use to display the name of that category id? i tried Code:
but that just gives me this Code:
I know this is simple, please help ![]() thanks -Jordan |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Code:
you may as well just post your findings as theres always someone who will find it helpful
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() My process for passing search query info into global variables:
If you want to do this, you must first perform the "Improved Search Function" mod: http://forum.x-cart.com/viewtopic.php?t=5971 In my /include/func.php, I found this portion: Code:
Code:
Code:
Code:
Now, I can have Boomer's CartLab Mod Sort take the current category and use it to sort the search results instead of the pull-down menu... and keep it from "forgetting" the param part of the search... Or I can display the category name instead of "Search Results" in the location header and the dialog title when the search is confined to one category. I just have to know how to turn this $stay_in_category value (a categoryid) into a category name. You can probably find plenty of uses for the global variables, and I bet a few of them would involve turning this value into a name. If you know how, please share. Thanks Jordan |
|||||||
#4
|
|||||||
|
|||||||
![]() this was posted a couple of months back, but did anyone come up ideas to use the global variables?
|
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|