Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1.             $resource3 = new DreamCommerce\ShopAppstoreLib\Resource\ProductStock($client);
  2.             $result3 = $resource3->get(5167);
  3.             print_r($result3);
  4.  
  5.  
  6.  
  7.  
  8.  
  9.             try{
  10.  
  11.                 $resource = new DreamCommerce\ShopAppstoreLib\Resource\OptionValue($client);
  12.                 $result = $resource->get();
  13.  
  14.                 foreach($result as $r) {
  15.                     printf("#%d (option: %d) - products num: %d\n", $r->ovalue_id, $r->option_id, $r->total_products);
  16.                 }
  17.             } catch(DreamCommerce\ShopAppstoreLib\Exception\Exception $ex) {
  18.                 die($ex->getMessage());
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement