public function removeattributefromproductAction() { $removeAttributes = $this->request->getPost('removeProductAttributeSet'); //Zend_Debug::dump($removeAttributes); $attributeType = $this->request->getPost('attributeType'); $productID = $this->request->getPost('ID'); //check to see if id is appropirate for the user if (in_array($attributeType, $this->productConfig['custom_attribute_detail_table']) && DatabaseObject_Helper_ProductListing::confirmproductforuploader($this->db, 'products', $this->signedInUserSessionInfoHolder->generalInfo->userID, $productID)) { foreach ($removeAttributes as $k => $v) { //check to see if product id and requeted deleted id match if (DatabaseObject_Helper_ManageAttribute::confirmproductattribute($this->db, $attributeType, $productID, $v)) { //echo process delete //echo "here at delete"; DatabaseObject_Helper_ManageAttribute::removeAttributeForProduct($this->db, $attributeType, $v); } } } $json = DatabaseObject_Helper_ManageAttribute::retrieveAttributeForProduct($this->db, $attributeType, $productID); //Zend_Debug::dump($productExistingAttribute); $this->sendJson($json); }