Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with OSC forms...Cannot add to cart


westkoast

Recommended Posts

I moved the default search form from the left side to the top nav, and for some reason now when a user pushed "add to cart" it trys to search instead of putting the item in the cart. Is there any way to get around this?

 

When I comment out the top search it seems to work fine, but when the search is active every submit button make the search form go off.

 

http://www.urbaneffect.com

I need to read the rules more often...

Link to comment
Share on other sites

You are missing a </form> tag at the end of your search code - eg.

 

    <td valign="top"><?php 
$hide = tep_hide_session_id(); 
echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">'; 
echo $hide . '<input "type="text" name="keywords" onFocus=this.value="" size="15"  maxlength="30" value="' . BOX_SEARCH_TEXT . '"> ' .  '<input type="submit" value="Go"><br><b><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . '</a></b>'; 
echo '</form>';
?></td>

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...