public function deleteProduct($id = NULL)
 {
     if ($this->user->isLogged()) {
         $this->request->post['vendor'] = $this->user->getVP();
     }
     $productIds = explode(',', $id);
     foreach ($productIds as $productId) {
         if (is_numeric($productId)) {
             $this->request->post['key'] = $productId;
             $data = parent::getInternalRouteData('product/product/delete', true);
             ApiException::evaluateErrors($data);
         }
     }
     $this->response->addHeader('Content-Type: application/json');
     $this->response->setOutput($data);
 }
 public function index($args = array())
 {
     parent::index($args);
 }