View Single Post
  #2  
Old 11-17-2008, 11:52 PM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Access search substring in search.php

There is array $posted_data that is cleaned out according to the array
$allowable_search_fields set in search.php:
PHP Code:
$allowable_search_fields = array (
    
"substring",
    
"by_title",
    
"by_shortdescr",
    
"by_fulldescr",
    
"by_sku",
    
"extra_fields",
    
"by_keywords",
    
"categoryid",
    
"category_main",
    
"category_extra",
    
"search_in_subcategories",
    
"price_max",
    
"price_min",
    
"price_max",
    
"avail_min",
    
"avail_max",
    
"weight_min",
    
"weight_max",
    
"manufacturers"); 
So you can refer it as $posted_data['substring']
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote