daniulian Posted August 6, 2010 Posted August 6, 2010 Hello, I have a problem with the ADD TO CART button: In the main page, when I press the ADD TO CART, the product is sent to the cart. In the product page, when I press the ADD TO CART, the product is not sent to the cart, and it shows me the empty cart. the code from the main page for the button is: ------------- <td><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_in_cart.gif') . '<img src=images/m30.gif width=30 height=25 border=0></a></td> ------------- the code from the product page for the button is: ------------- <td colspan=2><?php echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW); ?><img src=images/m30.gif width=30 height=25 border=0></td> ------------- in the brovser, the code looks like this: in the main page: ------------- <td><a href="http://microcomputers.es/index.php?products_id=57&action=buy_now"><img src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="" width="116" height="25"><img src=images/m30.gif width=30 height=25 border=0></a></td> ------------- in the product page: ------------- <td colspan=2><input type="image" src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="Buy Now" title=" Buy Now "><img src=images/m30.gif width=30 height=25 border=0></td> ------------- if I put the same code from the main page to the product page, the code in the browser from the product page will be: ------------- <td><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '">' . tep_image_button('button_in_cart.gif') . '<img src=images/m30.gif width=30 height=25 border=0></a></td> ------------- and the link of the button will be: http://www.microcomputers.es/' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . ' Can anyone help me to understand why the ADD TO CART button from the product page is not working? Any ideas ? Please Please Please!!!
Guest Posted August 6, 2010 Posted August 6, 2010 Daniel, It appears you have a poorly coded template. You should seek out support from the template provider although I don't think you will get any support. I did come across this a while ago and ended up re-coding the product_info page to correct the error. Chris
daniulian Posted August 6, 2010 Author Posted August 6, 2010 Daniel, It appears you have a poorly coded template. You should seek out support from the template provider although I don't think you will get any support. I did come across this a while ago and ended up re-coding the product_info page to correct the error. Chris Hi, and thanks for the response. I don't think that this is the problem, because I saw in many other product_info.php files, and the code is the same as in mine. mabe I have installed an addon that changed somethingm but I don't have a clue. Ideas?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.