Plugin Directory

Changeset 1656931


Ignore:
Timestamp:
05/14/2017 07:33:16 AM (9 years ago)
Author:
appeto
Message:

1.3.2

  • Set with new woocommerce api
Location:
appeto-woocommerce
Files:
43 added
3 edited

Legend:

Unmodified
Added
Removed
  • appeto-woocommerce/trunk/api/api.php

    r1639759 r1656931  
    214214                    $result["app_order_key"] = "";
    215215                    if($id == -1) {
    216                         $result["response"] = $client->$obj->$fnc($args);
     216                        if($obj == "customers" and $fnc == "get_by_email" and $user_email != '') {
     217                            $user = get_user_by( 'email', $args );
     218                            if(isset($user->ID) and $user->ID > 0) {
     219                                $result["response"] = (object) array(
     220                                    "customer" => (object) array(
     221                                        "email" => $args,
     222                                        "id" => $user->ID
     223                                    )
     224                                );
     225                            }
     226                        }
     227                        else {
     228                            $result["response"] = $client->$obj->$fnc($args);
     229                        }
    217230                        if($createCustomer and isset($result["response"]->customer->id) and $result["response"]->customer->id > 0) {
    218231                            $user_id = $result["response"]->customer->id;
  • appeto-woocommerce/trunk/index.php

    r1639759 r1656931  
    55 * Description: رابط بین اپلیکیشن و فروشگاه ساز ووکامرس - اپتو
    66 * Author: APPETO TM
    7  * Version: 1.3.1
     7 * Version: 1.3.2
    88 * Author URI: http://appeto.ir
    99 * License: تمامی حقوق این افزونه مربوط به اپتو میباشد و هرگونه کپی برداری پیگرد قانونی خواهد داشت.
  • appeto-woocommerce/trunk/readme.txt

    r1639759 r1656931  
    5454= 1.3.1 =
    5555* Reported bugs were fixed
     56
     57= 1.3.2 =
     58* Set with new woocommerce api
Note: See TracChangeset for help on using the changeset viewer.