oops

j007w <[email protected]>
Newsgroups gmane.comp.web.oscommerce.contributions
Message-ID <2cae4782b271779c9c99a97286f5fb17@osCommerce-Forums>
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227257#227257
----------------------------------------------------------------

Hi,

i messed things up somehow. I fixed some errors but still have the following:

1. In the "index.php" page of the catalog under "Categories" I get this error: 

Warning: Invalid argument supplied for foreach() in /home/j007w/public_html/catalog/includes/modules/main_categories.php on line 50

This is the "main_categories.php" starting with line 49
[code]// Traverse category tree
    foreach ($foo as $key => $value) {
      if ($foo[$key]['parent'] == $cid) {
//        print "$key, $level, $cid, $cpath<br>";
        preorder($key, $level+1, $foo, ($level != 0 ? $cpath . $cid . '_' : ''))
;
      }
    }
  }

?>
<!-- main_categories //-->[/code]

2. In "product_info.php" of the catalog I get the following error in every product:

Fatal error: Call to undefined function: in_cart_mixed() in /home/j007w/public_html/catalog/includes/functions/quantity_controller.php on line 295

This is "quantity_controller.php" starting on line 288

[code]// Return quantity buy now
  function tep_get_buy_now_qty($product_id) {
    global $cart;
    $check_min=tep_get_products_quantity_order_min($product_id);
    $check_units=tep_get_products_quantity_order_units($product_id);
    $buy_now_qty=1;
    switch (true) {
      case ($cart->in_cart_mixed($product_id)==0):
        if ($check_min >= $check_units) {
          $buy_now_qty=$check_min;
        } else {
          $buy_now_qty=$check_units;
        }
        break;
//      case ($cart->in_cart_mixed($product_id) < $check_units):
      // not used - decide how quantity should be handled
//        $buy_now_qty=$check_units;
//        break;
      default:
        $buy_now_qty=$check_units;
        break;
    }
    return $buy_now_qty;
  }[/code]

3. In the admin section, when I click on either of the 2 links in "Paypal IPN" box or a link to any products in the drop down box on the upper right corner in "Catalog" it takes me back to the login screen. When I log in again it takes me back to the "My Store" in "Configurations" box. 

Thanks in advance; I really appreciate it.

Joseph
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.