Jump to content

count products in order with status Preparation in progress


Recommended Posts

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.php

i 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

×
×
  • Create New...