private function createProduct($name, $type, $ref, $desc, $cat, $manufacturer, $avail, $featured, $features, $pprice, $rprice, $wprice, $tax, $img, $openstock, $optstock, $lowstock, $pheight, $pwidth, $plength, $pweight, $shape, $pack, $images) { if ($this->validateAdmin()) { echo json_encode(StockInventory::CreateItem($name, $type, $ref, $desc, $cat, $manufacturer, $avail, $featured, $features, $pprice, $rprice, $wprice, $tax, $img, $openstock, $optstock, $lowstock, $pheight, $pwidth, $plength, $pweight, $shape, $pack, $images)); } else { echo 0; } }