Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot add product to shopping cart


Guest

Recommended Posts

I get the following errors when trying to add a product to my shopping cart:

 

 

Notice: Undefined index: id in /home/waterloo/public_html/k-wbookworm.com/catalog/includes/application_top.php on line 374

 

Notice: Undefined index: id in /home/waterloo/public_html/k-wbookworm.com/catalog/includes/application_top.php on line 374

 

Warning: Cannot modify header information - headers already sent by (output started at /home/waterloo/public_html/k-wbookworm.com/catalog/includes/application_top.php:374) in /home/waterloo/public_html/k-wbookworm.com/catalog/includes/functions/general.php on line 33

 

Not sure why.

 

Keith

Link to comment
Share on other sites

Here are the lines causing the error:

 

 

// customer adds a product from the products page

case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);

}

tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

break;

 

Please note that the product does actually get added, then the error codes are displayed.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...