Plugin Directory

Changeset 1770056


Ignore:
Timestamp:
11/18/2017 10:44:06 AM (8 years ago)
Author:
Betaout
Message:

Bug fix work with W3 total cache and Autoptimizer

Location:
woocommerce-betaout/tags/3.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-betaout/tags/3.0/index.php

    r1766797 r1770056  
    44  Plugin URI: http://www.betaout.com
    55  Description: Manage all your Wordpress sites and Editorial team from a single interface
    6   Version: 3.0
     6  Version: 3.0.2
    77  Author: BetaOut ([email protected])
    88  Author URI: http://www.betaout.com
  • woocommerce-betaout/tags/3.0/lib/betaout-wc-json-order.php

    r1747020 r1770056  
    4545            $result['totalOrders'] = $this->get_orders_count($status,$filter);
    4646            $result['totalProducts']=$this->get_products_count();
    47             $result['order_statuses']=$this->get_order_statuses();
     47            $result['status']=$this->get_order_statuses();
    4848            return $result;
    4949        }
     
    200200
    201201        $order_statuses = array();
    202 
     202                $i=0;
    203203        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
    208211    }
    209212        protected function query_orders( $args ) {
  • woocommerce-betaout/tags/3.0/lib/betaout-wc-json-server.php

    r1747020 r1770056  
    710710    }
    711711   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";
    714714        $sdata['orders']=$data;
    715715        $result=self::sendData($data, $url);
     
    717717    }
    718718    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";
    721721          $sdata['products']=$data;
    722722         $result=self::sendData($sdata, $url);
     
    724724    }
    725725    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";
    728728        $sdata['users']=$data;
    729729        $result=self::sendData($sdata, $url);
Note: See TracChangeset for help on using the changeset viewer.