weraw Posted August 20, 2010 Share Posted August 20, 2010 hi,We need a solution to check in how many orders with status "Preparation in progress" we can find a product with a specefy referal or id!This is because we want to check how many reserved products we have!I have begin make it possibel but i am stock in my code Will tray to explain how i have think to have it and how it should work.What have i do?In admin folder you can find header.php there i have add option nr 6! $_POST['bo_search_type'] == 5)) ? ' selected="selected"' : '' ?>><?php echo translate('Reservationer') ?> in the admin/tabs/AdminSearch.phpi have begin to take the data from the form and there i am stock. /* Reservationer */ elseif (intval($_POST['bo_search_type']) == 6) { if (intval($_POST['bo_query']) AND Validate::isUnsignedInt(intval($_POST['bo_query']))) { if ($cart = new Cart(intval($_POST['bo_query'])) AND $cart->id) { Tools::redirectAdmin('index.php?tab=AdminCarts&id;_cart='.intval($cart->id).'&viewcart;'.'&token;='.Tools::getAdminToken('AdminCarts'.intval(Tab::getIdFromClassName('AdminCarts')).intval($cookie->id_employee))); } else $this->_errors[] = Tools::displayError('Produkt #').intval($_POST['bo_query']).' '.Tools::displayError('not found'); } else $this->_errors[] = Tools::displayError('please type a cart ID'); } How can i manipulate my code above to ansverd my question at the top in this topic?my ps version: 1.2.5 Link to comment Share on other sites More sharing options...
weraw Posted August 25, 2010 Author Share Posted August 25, 2010 Dose anyone know a solution to check reserved product Link to comment Share on other sites More sharing options...
weraw Posted August 26, 2010 Author Share Posted August 26, 2010 Bump!!. Link to comment Share on other sites More sharing options...
Recommended Posts