sparky256DSL Posted October 28, 2006 Posted October 28, 2006 I changed the header.inc file to match the website theme. and now everytime I click on the "Add To Cart" or shopping cart "Update" buttons it opens a new window to perform the actions. But after that windows is open (if you continue to use the new window) all other clicks to these buttons updates the current page. The previous window continues to open new windows when you click on these buttons. I know these buttons use the tep_image_submit function that basically calls a <input type="image"> routine. How can I fix this? What file would the fix need to be in? The carts site is http://greensparks.org/newweb/cart/index.php By the way the actions these buttons perform do work and if you refresh the first screen it does reflect the changes as well. Thanks
♥Monika in Germany Posted October 28, 2006 Posted October 28, 2006 try adding a new parameter to your form call on the cart page: <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product'), 'post', 'target="_self"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> the self will force the page to stay in the same window. I have seen a similar issue in a footer once, very weird but I used the same method there to make the links behave. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
sparky256DSL Posted October 28, 2006 Author Posted October 28, 2006 Thanks for the help. It worked great!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.