jameshill Posted December 9, 2008 Share Posted December 9, 2008 When changing currency (using the sidebar drop-down menu) from a product detail page, the item is added to the customer's cart and the currency remains the same. Stranger still is that changing currency from a category contents page works fine. Any ideas? Thanks, James Link to comment Share on other sites More sharing options...
♥FWR Media Posted December 9, 2008 Share Posted December 9, 2008 When changing currency (using the sidebar drop-down menu) from a product detail page, the item is added to the customer's cart and the currency remains the same. Stranger still is that changing currency from a category contents page works fine. Any ideas? Thanks, James Suggests to me that the forms are conflicting so the currency submit is sending the add to cart. More than likely badly formed html code. Closing </form> in the wrong place etc. Have you tried validating the page? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
jameshill Posted January 6, 2009 Author Share Posted January 6, 2009 Thank you for the tip. I validated the code and found--as you suspected--that a form isn't being closed. Looking at the html output I can see now that this is the problem. But I'm not sure how to make the change. How do I close a form when it's being generated with php? Here is the form that I need to close (in catalog/product_info.php): <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product'));?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php if ($product_check['total'] < 1) { ?> Can you help me to close this form? Many thanks, James Link to comment Share on other sites More sharing options...
jameshill Posted January 6, 2009 Author Share Posted January 6, 2009 Oops. I was really over-thinking that. I just added a closing form tag and voila! Thank you very much once again for your help. Best, James Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.