Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Have "Advanced Search" as a button (osCommerce 2.3)


  • You cannot reply to this topic
2 replies to this topic

#1 Almirena

  • Community Member
  • 190 posts
  • Real Name:Ingrid

Posted 08 February 2012, 06:12

Hello,

I've just installed osCommerce 2.3 - hmm, a bit different to the previous edition...!

I would like the Advanced Search to be a clickable button (like the Search button) linking to the Advanced Search page, rather than text linking to the Advanced Search page.

Can anyone help with how this could this done?

#2 NodsDorf

  • Community Member
  • 1,233 posts
  • Real Name:Don Ford
  • Gender:Male
  • Location:ohio usa

Posted 08 February 2012, 13:55

Yep..just need to draw a hidden form search in description and input box submits to FILENAME_ADVANCED_SEARCH.. we done this on our live 2.2 rc2a store as well as in our test shop on 2.3.1. If nobody gets you the code, I'll post it when I get to work.

#3 NodsDorf

  • Community Member
  • 1,233 posts
  • Real Name:Don Ford
  • Gender:Male
  • Location:ohio usa

Posted 08 February 2012, 16:02

Sorry Ingrid I re-read your post, I thought you were asking how to make the search do an advanced search rather then a basic search.

So you just want to change the text displayed to an actual UI Widget Button?

If so this should do it..
tep_draw_button(IMAGE_BUTTON_ADVANCED_SEARCH, 'triangle-1-e', tep_href_link(FILENAME_ADVANCED_SEARCH))

In catalog/includes/modules/boxes/bm_search.php

Find:
'<br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><strong>' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</strong></a>' .
Replace with:
'<br />' . tep_draw_button(IMAGE_BUTTON_ADVANCED_SEARCH, 'triangle-1-e', tep_href_link(FILENAME_ADVANCED_SEARCH)) .

Then add the language definition to the apropriate languages you use:
For example
catalog/includes/langues/english.php
Add before the final ?>
define('IMAGE_BUTTON_ADVANCED_SEARCH', 'Advanced Search');