Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

search and add to cart problem


hansmignon

Recommended Posts

Dear,

 

I have changed my template and I have added the search box on top of my page.

 

After testing I found that the search box is working but when you go to product info page and you click on:

 

add to cart you go to the search function instead of going to the shopping cart function. My code is:

 

<table width="100%" border="0" bordercolor="black" cellpadding="0" cellspacing="0">

<tr>

<td width="50%" />

<td width="50%">

<!-- search box -->

<?php //require(DIR_WS_BOXES . 'search.php'); ?>

<!-- /search box -->

</td>

</tr>

</table>

</td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td valign="top" >

<!-- content -->

<div id="contentBox">

<?php

if (isset($content_template) && file_exists(DIR_WS_CONTENT .

basename($content_template))) {require(DIR_WS_CONTENT . basename($content_template));

} else {

require(DIR_WS_CONTENT . $content . '.tpl.php');

}

?>

</div>

<!-- /content -->

</td>

</tr>

</table>

 

When I move or remove the search code under the product_info page it is working. Have someone any idee how I can solve this ?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...