| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Search Box Code Question | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello, I had a custom search box created for my site. It works great, but I would like to make one little change. I would like for the search criteria that a person enters to remain the next time they return to do a search. For example, if under "player name" they enter Derek Jeter and then click search, it returns all products with Derek Jeter in the name. When they go back to the home page and the search box, it currently resets. I would like for Derek Jeter to still appear in the "player name" section when they return.
Here is the current code for the "player search" portion: <b>{$lng.lbl_player_name}</b><br /> <input name="posted_data[player]" id="search_player" value="" /> Is there a simple piece of coding I can use to accomplish this? Thanks in advance, Jeremy |
|||||||
#3
|
|||||||
|
|||||||
![]() Phil,
Could this script also be used to remember the username of a customer at login, but not their password? Thanks in advance
__________________
Best Wishes, James 4.5.2 Gold (work in progress) |
|||||||
#4
|
|||||||
|
|||||||
![]() Phil, thanks, but I'm looking for something that the user doesn't have to opt-in/out, and I also have some drop-down selection boxes that I'd like to be remembered. I know the x-cart "product management" search in admin has this capability. Does anyone have any ideas? Thanks, Jeremy
|
|||||||
#5
|
|||||||
|
|||||||
![]() It can be modified so that it's not opt in/out - you just have to change the checkbox into a hidden form field.
__________________
xcartmods.co.uk |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|