public static function CreateItem($name, $type, $ref, $desc, $categories, $manufacturer, $avail, $featured, $features, $pprice, $rprice, $wprice, $tax, $img, $openstock, $optstock, $lowstock, $pheight, $pwidth, $plength, $pweight, $pshape, $pack, $images) { $product = Product::Create($name, $ref, $desc, $manufacturer, $features, $pprice, $rprice, $wprice, $tax, $img, $pheight, $pwidth, $plength, $pweight, $pshape, $images); $stockItem = StockAccount::CreateAccount($product, $pack, $featured, $avail, $openstock, $optstock, $lowstock, $pprice, $rprice, $wprice, $tax); //include store_name Category::TagItem($product, $categories); if (!self::$loaded) { self::loadItems(); } self::$Inventory[] = $stockItem; return $stockItem; }