Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. $GetCurrentStock = $MyApi->GetCurrentStock('Array');
  2. print_r($GetCurrentStock);
  3.  
  4. $productData = array(
  5. 'product_description' => array('1' => array('name' => 'Alcatel', 'meta_description' => '' ,'meta_keyword' =>'', 'description' => '', 'tag' =>'')),
  6.  
  7. 'model' => 'Alcatel Hero OT-8020X Black',
  8. 'price' => '301.40',
  9.  
  10. 'tax_class_id' => 0,
  11. 'quantity' => 1,
  12. 'minimum' => 1,
  13. 'subtract' => 1,
  14. 'stock_status_id' => 6,
  15. 'shipping' => 1 ,
  16. 'image' => 'http://www.mobileshop.bz/phone-pictures/api/3531-alcatel-hero-ot-8020x.jpg',
  17. 'manufacturer' => 'Alcatel',
  18. 'manufacturer_id' => 44,
  19. 'category' => 'ce',
  20. 'product_category' => array('0' => 61),
  21. 'product_store' => array('0' => 0),
  22. 'date_available' => '2015-03-31',
  23. 'length_class_id' => 1,
  24. 'weight_class_id' => 1,
  25. 'status' => 1,
  26. 'sort_order' => 1,
  27.  
  28. );
  29.  
  30. //load model
  31. $this->load->model('catalog/product');
  32.  
  33. // Attempt to pass the assoc array to the add Product method
  34. $this->model_catalog_product->addProduct($productData);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement