Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

remove products doesn't work


Recommended Posts

this thing isn't removing products when checked for some reason.


i'm having trouble getting it to return any values for $product_id right here, (i think) and i'm guessing there's a problem here...?


 case 'update_product' : for ($i=0, $n=sizeof($HTTP_POST_VARS['products_id']); $i<$n; $i++) {
                               if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) {
                               } else {
                                 if (PHP_VERSION < 4) {
                                   // if PHP3, make correction for lack of multidimensional array.
                                   while (list($key, $value) = each($HTTP_POST_VARS)) {
                                     if (is_array($value)) {
                                       while (list($key2, $value2) = each($value)) {
                                         if (ereg ("(.*)\]\[(.*)", $key2, $var)) {
                                           $id2[$var[1]][$var[2]] = $value2;
                                   $attributes = ($id2[$HTTP_POST_VARS['products_id'][$i]]) ? $id2[$HTTP_POST_VARS['products_id'][$i]] : '';
                                 } else {
                                   $attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : '';
                                 $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false);
                             tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));


Could someone kindly offer me a hand? there was a Related Products CONTRIB installed before i got this thing, and that may have something to do with this, though i can't pick all this apart like some of you can.




Thanks Much!



Link to comment
Share on other sites


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

  • Create New...