Changeset 1770056
- Timestamp:
- 11/18/2017 10:44:06 AM (8 years ago)
- Location:
- woocommerce-betaout/tags/3.0
- Files:
-
- 3 edited
-
index.php (modified) (1 diff)
-
lib/betaout-wc-json-order.php (modified) (2 diffs)
-
lib/betaout-wc-json-server.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-betaout/tags/3.0/index.php
r1766797 r1770056 4 4 Plugin URI: http://www.betaout.com 5 5 Description: Manage all your Wordpress sites and Editorial team from a single interface 6 Version: 3.0 6 Version: 3.0.2 7 7 Author: BetaOut ([email protected]) 8 8 Author URI: http://www.betaout.com -
woocommerce-betaout/tags/3.0/lib/betaout-wc-json-order.php
r1747020 r1770056 45 45 $result['totalOrders'] = $this->get_orders_count($status,$filter); 46 46 $result['totalProducts']=$this->get_products_count(); 47 $result[' order_statuses']=$this->get_order_statuses();47 $result['status']=$this->get_order_statuses(); 48 48 return $result; 49 49 } … … 200 200 201 201 $order_statuses = array(); 202 202 $i=0; 203 203 foreach ( wc_get_order_statuses() as $slug => $name ) { 204 $order_statuses[ str_replace( 'wc-', '', $slug ) ] = $name; 205 } 206 207 return array( 'order_statuses' => apply_filters( 'woocommerce_api_order_statuses_response', $order_statuses, $this ) ); 204 $order_statuses[$i]['value'] =str_replace( 'wc-', '', $slug ) ; 205 $order_statuses[$i]['label'] = $name; 206 $i++; 207 } 208 209 return $order_statuses; 210 208 211 } 209 212 protected function query_orders( $args ) { -
woocommerce-betaout/tags/3.0/lib/betaout-wc-json-server.php
r1747020 r1770056 710 710 } 711 711 public function bulkOrder($data){ 712 //$url="https://api.betaout.com/v2/bulk/orders/";713 $url="http://stag-api.betaout.in/v2/bulk/orders";712 $url="https://api.betaout.com/v2/bulk/orders/"; 713 //$url="http://stag-api.betaout.in/v2/bulk/orders"; 714 714 $sdata['orders']=$data; 715 715 $result=self::sendData($data, $url); … … 717 717 } 718 718 public function bulkProduct($data){ 719 //$url="https://api.betaout.com/v2/bulk/products";720 $url="http://stag-api.betaout.in/v2/bulk/products";719 $url="https://api.betaout.com/v2/bulk/products"; 720 //$url="http://stag-api.betaout.in/v2/bulk/products"; 721 721 $sdata['products']=$data; 722 722 $result=self::sendData($sdata, $url); … … 724 724 } 725 725 public function bulkUser($data){ 726 //$url="https://api.betaout.com/v2/bulk/users/";727 $url="http://stag-api.betaout.in/v2/bulk/users";726 $url="https://api.betaout.com/v2/bulk/users/"; 727 //$url="http://stag-api.betaout.in/v2/bulk/users"; 728 728 $sdata['users']=$data; 729 729 $result=self::sendData($sdata, $url);
Note: See TracChangeset
for help on using the changeset viewer.