public function addattributetoproductAction()
 {
     $addedAttributes = $this->request->getPost('addAttributeSet');
     //Zend_Debug::dump($attributes);
     $attributeType = $this->request->getPost('attributeType');
     $productID = $this->request->getPost('ID');
     if (in_array($attributeType, $this->productConfig['custom_attribute_detail_table'])) {
         foreach ($addedAttributes as $k => $v) {
             //echo $v;
             if (DatabaseObject_Helper_ManageAttribute::confirmattributeidwithuploader($this->db, $attributeType, $this->signedInUserSessionInfoHolder->generalInfo->userID, $v) && DatabaseObject_Helper_ProductListing::confirmproductforuploader($this->db, 'products', $this->signedInUserSessionInfoHolder->generalInfo->userID, $productID)) {
                 //proceed to add product attribute sets
                 //echo 'here at good product id and attribute id';
                 DatabaseObject_Helper_ManageAttribute::addAttributeToProduct($this->db, $attributeType, $productID, $v);
             }
         }
         $json = DatabaseObject_Helper_ManageAttribute::retrieveAttributeForProduct($this->db, $attributeType, $productID);
         //Zend_Debug::dump($productExistingAttribute);
         $this->sendJson($json);
     }
 }