| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
| 
 | 
||||||||||
| X-Cart Home | 
Searching Extra Fields | |||
![]()  | 
	
	
		
			 | 	
	
||
| 
		 | 
	Thread Tools | Search this Thread | 
| 
		 
			 
			#1  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 Now I need to add to the Advanced search page - I will have a drop down box with a list of values that may be found in ANY of the extra fields. So, I want to add the value selected to the advanced search. 
		
	
		
		
		
		
		
	
		
		
		
	The problem is that I think the values assigned in the <Select> drop down list need to be passed through smarty (?) somehow and then I would add this to the query: Code: 
	
 (Note: I am skipping param00 and param09 intentionally) $ef_search would be the value of what was selected in the drop-down, but HOW do I get it to pick up the value from the <select> box?? The drop down looks something like this: Code: 
	
 And I modified the $search_query to include the $search_ef_condition: Code: 
	
 It's looking like I'm in over my head, but I feel I am close. Any ideas? Am I going about this the wrong way? You see what I am wanting to add to the query - Search all of the param0x fields for a value that was selected from the drop down added to the advanced search page. Help?  | 
|||||||||
| 
		 
			 
			#2  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 Print the complete query string and give it a whirl in phpMyAdmin to see if you've got any syntax errors or if you need to restructure the query. 
		
	
		
		
		
		
			
		
		
		
		
	
		
		
		
	hth.  | 
|||||||||
| 
		 
			 
			#3  
			
			
			
			
		 
		
		
	 | 
|||||||||
		
		
  | 
|||||||||
| 
	
	
		
        	 To do that, I would have to translate the variables first and this is exactly the problem - the $ef_search is not getting set by the drop down value. I believe it has to go through smarty because the other variables in the advanced search page have this: value="{$smarty.get.substring}" 
		
	
		
		
		
		
		
	
		
		
		
	I don't know enough to be able to pass the value selected in the drop down, through smarty (if that's what I need) and then to the search.php script, so the $ef_search variable contains the value selected in the drop down.  | 
|||||||||
| 
		 
			 
			#4  
			
			
			
			
		 
		
		
	 | 
|||||||
		
		
  | 
|||||||
| 
	
	
		
        	 Any progress?   
		
	
		
		
		
		
		
	
		
		
		
	It would be realy nice if the search could search feilds that are in the extra feilds. Thanks, John7  | 
|||||||
![]()  | 
		
	
		
			 | 	
	
| Thread Tools | Search this Thread | 
		
  | 
	
		
  | 
| 
 | 
|||
| 
 
X-Cart forums © 2001-2020
 
 | 
|||