Jump to content

Archived

This topic is now archived and is closed to further replies.

akmiecik

Adding osCommerce Search to HTML Page

Recommended Posts

I have duplicated and modified: index.php, includes/column_left.php and ../boxes/search.php

 

so that I have a nice set of files what will enable me to embed the osCommerce search into my companies main html page.

 

see: www.alank.net/~tcdepot/test.php

 

I have "Advanced Search" set up to that it opens a new window (i.e. figured out where to put taget="_blank")

 

I need help to figure out where to put something like target="_blank" so that the quick find opens a new window too.

 

ps. I am using iframe to stick in on the homepage of www.tcdepot.com

 

THANKS!

Share this post


Link to post
Share on other sites

just add an onclick event handler that will open up a new window

Share this post


Link to post
Share on other sites
just add an onclick event handler that will open up a new window

 

Any examples and where does it go (i.e. main page, or in one of the three php pages being used)?

Share this post


Link to post
Share on other sites
Any examples and where does it go (i.e. main page, or in one of the three php pages being used)?

 

Better yet ... add the target="_blank" tag in your form

 

<form name="quick_find" action="http://www.alank.net/~tcdepot/advanced_search_result.php" method="get" target="_blank">

Share this post


Link to post
Share on other sites
Better yet ... add the target="_blank" tag in your form

 

<form name="quick_find" action="http://www.alank.net/~tcdepot/advanced_search_result.php" method="get" target="_blank">

 

This is starting to make sense. Can I add something to this line:

 

tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

 

in the ../boxes/search.php in

Share this post


Link to post
Share on other sites
This is starting to make sense. Can I add something to this line:

 

tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'),

 

in the ../boxes/search.php in

 

Yes if you want to add target="_blank" in that code ... use:

 

tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'target="_blank"');

Share this post


Link to post
Share on other sites
Yes if you want to add target="_blank" in that code ... use:

 

tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'target="_blank"');

 

Success. Thank you for the help.

 

I put:

 

<form name="quick_find" action="http://www.alank.net/~tcdepot/advanced_search_result.php" method="get" target="_blank">

<input style="WIDTH: 100px; HEIGHT: 25px" maxlength="1024" size="48" name="keywords">

<input type="submit" value="Search">

</form>

 

On the index.html page where I want the search to go (www.tcdepot.com) and it works.

 

That means I am not using the php files mentioned in the original post.

 

Ends up a nice way to put a product search to the osCommerce site on an intro HTML page.

Share this post


Link to post
Share on other sites

×