View Single Post
  #5  
Old 04-22-2008, 11:04 AM
 
xcart@spiritdiscovery.com xcart@spiritdiscovery.com is offline
 

Advanced Member
  
Join Date: Jan 2003
Posts: 32
 

Default Re: Search feature - How to enable these check boxes by default?

Maybe someone can help me with the syntax for 4.1.9 for this same issue (making all the check boxes ON for the Advanced Search.)

The 4.19 code now looks like this, pulling whatever is in the POST, which is empty by default. We want to default the check boxes on, even if they've searched previously:

PHP Code:
<input type="checkbox" id="posted_data_by_sku" name="posted_data[by_sku]"{if $search_prefilled eq "" or $search_prefilled.by_skuchecked="checked"{/if} /> 

I tried changing it to
PHP Code:
<input type="checkbox" id="by_sku" name="by_sku" checked="checked"  /> 
But that hasn't worked.

Any ideas -- do I have the name wrong?
__________________
X-Cart Gold Version 4.0.19
X-Cart Gold Version 4.1.9
X-Cart Pro Version 4.1.9
Unix
Reply With Quote