Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $GetCurrentStock = $MyApi->GetCurrentStock('Array');
- print_r($GetCurrentStock);
- $productData = array(
- 'product_description' => array('1' => array('name' => 'Alcatel', 'meta_description' => '' ,'meta_keyword' =>'', 'description' => '', 'tag' =>'')),
- 'model' => 'Alcatel Hero OT-8020X Black',
- 'price' => '301.40',
- 'tax_class_id' => 0,
- 'quantity' => 1,
- 'minimum' => 1,
- 'subtract' => 1,
- 'stock_status_id' => 6,
- 'shipping' => 1 ,
- 'image' => 'http://www.mobileshop.bz/phone-pictures/api/3531-alcatel-hero-ot-8020x.jpg',
- 'manufacturer' => 'Alcatel',
- 'manufacturer_id' => 44,
- 'category' => 'ce',
- 'product_category' => array('0' => 61),
- 'product_store' => array('0' => 0),
- 'date_available' => '2015-03-31',
- 'length_class_id' => 1,
- 'weight_class_id' => 1,
- 'status' => 1,
- 'sort_order' => 1,
- );
- //load model
- $this->load->model('catalog/product');
- // Attempt to pass the assoc array to the add Product method
- $this->model_catalog_product->addProduct($productData);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement