<? // Several sample items are included to give you guidelines // to setting up your inventory. // Types of items (without options): // $types = array(..., "ITEM CODE" => "DESCRIPTIVE NAME", ...); $types = array( "B" => "Bumper Stickers", "L" => "Mailing Labels", "BA" => "Button A", "BB" => "Button B", "S" => "Stickers", "ST" => "Stencils", "D" => "Donation" ); // Types of items (with options): // $types2 = array(..., "ITEM CODE" => "DESCRIPTIVE NAME", ...); $types2 = array( "#HSA" => "T-Shirt # 1", "#SSA" => "T-Shirt # 2" ); // Pricing of items: // $pricing['ITEM CODE'] = array(..., QUANTITY => PRICE, ...); $pricing['B'] = array(1 => 1, 5 => 4, 10 => 7, 25 => 13, 50 => 23); $pricing['L'] = array(50 => 6, 100 => 10, 200 => 17, 500 => 35, 1000 => 68); $pricing['BA'] = array(5 => 5, 10 => 9, 20 => 17, 50 => 40); $pricing['BB'] = array(5 => 5, 10 => 9, 20 => 17, 50 => 40); $pricing['S'] = array(12 => 5, 25 => 9, 50 => 16, 100 => 29, 200 => 53); $pricing['ST'] = array(1 => 10, 5 => 30, 10 => 50); $pricing['D'] = array(1 => 1); $pricing['#HSA'] = array(1 => 10); $pricing['#SSA'] = array(1 => 10); // Don't allow quantities w/o valid increments: // $nocustom['ITEM CODE'] = 1; $nocustom['L'] = 1; // Shipping for items: // $shipping['ITEM CODE'] = "category name"; // define types below $shipping['B'] = "stickers"; $shipping['L'] = "labels"; $shipping['BA'] = "buttons"; $shipping['BB'] = "buttons"; $shipping['D'] = "free"; $shipping['ST'] = "stencils"; $shipping['S'] = "stickers"; $shipping['#HCG'] = "shirt"; $shipping['#HSA'] = "shirt"; $shipping['#PCG'] = "shirt"; $shipping['#PSA'] = "shirt"; $shipping['#SSA'] = "shirt"; // Shipping categories for items: // $shippingCategory['CATEGORY NAME'] = array(FIRST ITEM, ADD'L ITEMS, INT'L ITEMS); $shippingCategory['free'] = array(0, 0, 0); $shippingCategory['stickers'] = array(0, 0, .10); $shippingCategory['stencils'] = array(0, 0, 2); $shippingCategory['buttons'] = array(0, 0, .15); $shippingCategory['labels'] = array(0, 0, .01); $shippingCategory['shirt'] = array(2, 2, 10); // Options for items: // $options['ITEM CODE']['OPTION NAME'] = array(..., OPTION CODE => OPTION NAME, ...); $options['#HSA']['size'] = array( "S" => "Small", "M" => "Medium", "L" => "Large", "XL" => "X-Large", "XXL" => "XX-Large" ); $options['#HSA']['color'] = array( "BG" => "Gray with black graphic", "WN" => "Navy with white graphic" ); $options['#SSA']['size'] = array( "S" => "Small", "M" => "Medium", "L" => "Large", "XL" => "X-Large", "XXL" => "XX-Large" ); $options['#SSA']['color'] = array( "RY" => "Yellow with red graphic", "RW" => "White with red graphic" ); ?>