Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

search and add to cart problem


Recommended Posts



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">


<td width="50%" />

<td width="50%">

<!-- search box -->

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

<!-- /search box -->







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



<td valign="top" >

<!-- content -->

<div id="contentBox">


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');




<!-- /content -->





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


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

  • Create New...