Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing currency adds item to cart.


jameshill

Recommended Posts

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

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?

Link to comment
Share on other sites

  • 4 weeks later...

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

Archived

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

×
×
  • Create New...