Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session + search = cart empty


blackhorse

Recommended Posts

Posted

Hi All!

 

I got one problem: If somebody put something in his cart, and then he uses the search-function -> everything gets lost in his cart .... the cart displays "0 items". It seems to be a Session problem ...

 

the code for the search in the header.php is:

 

 <tr><td width="189" align="center"><?php echo tep_draw_form('search',tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false),'get') ?>
			   <table border="0" cellspacing="0" cellpadding="0" width="172" align="center">
				<tr><td><span class="tx"><?=IMAGE_BUTTON_SEARCH?>:</span><br style="line-height:1px;"><br style="line-height:4px;"></td></tr>
				<tr><td width="133" align="center"><input type=text name="keywords" class="go" value="suchen"></td>
					<td width="39"><?=tep_image_submit('button_go.gif')?></td></tr>

 

What i have to change here, that the session is transfered to the advanced_search?

 

thank you in advance!

 

Best regards

Mark

Posted

you're missing the tep_hide_session_id function from the form. See the osc stock file.

Archived

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

×
×
  • Create New...