Plugin Directory

Changeset 2817460


Ignore:
Timestamp:
11/14/2022 07:57:01 AM (3 years ago)
Author:
doshii
Message:

Submitting changes for release 2.5.2

Location:
doshii/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • doshii/trunk/README.txt

    r2814409 r2817460  
    55Requires at least: 4.7
    66Tested up to: 5.8.0
    7 Stable tag: 2.5.1
     7Stable tag: 2.5.2
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5959
    6060== Changelog ==
     61
     62= 2.5.2 =
     63
     64Improved support for Doshii's virtual items within product attributes and PPOM fields
    6165
    6266= 2.5.1 =
  • doshii/trunk/doshii_function.php

    r2814409 r2817460  
    77Author URI: https://www.doshii.io
    88Contributors:
    9 Version: 2.5.1
     9Version: 2.5.2
    1010*/
    1111
  • doshii/trunk/include/woo-doshii-initialise.php

    r2814409 r2817460  
    4040       'x-doshii-location-id' => $locationId.'',
    4141       'content-Type' => 'application/json',
    42        'x-doshii-writeout' => 'WooCommerce 2.5.1',
     42       'x-doshii-writeout' => 'WooCommerce 2.5.2',
    4343    );
    4444
  • doshii/trunk/include/woo-doshii-product-sync.php

    r2814409 r2817460  
    4848            'x-doshii-location-id' => $locationId.'',
    4949            'content-Type' => 'application/json',
    50             'x-doshii-writeout' => 'WooCommerce 2.5.1',
     50            'x-doshii-writeout' => 'WooCommerce 2.5.2',
    5151        )
    5252    ));
  • doshii/trunk/include/woo-order-api.php

    r2814409 r2817460  
    305305
    306306                        $variant_name = $meta->value;
     307                        $variant_posId = '';
    307308                        if (!empty($option_posId)) {
    308309                            $doshii_product_variant_tbl  = $wpdb->prefix . 'doshii_product_variant';
     
    313314                            $variant_posId = $doshii_variant_record->doshii_product_variant_id;
    314315                            $variant_name = $doshii_variant_record->doshii_product_variant_name;
     316                            $variant_customPosId = $doshii_variant_record->doshii_custom_id;
    315317                            if (empty($variant_name)) {
    316318                                $doshii_custom_variant_sql = "SELECT * FROM $doshii_product_variant_tbl where doshii_product_id = '$mappedProductId' AND doshii_product_option_id='$option_posId' AND doshii_custom_id='$metaVariantId'";
     
    319321                                $variant_posId = $doshii_custom_variant_record->doshii_product_variant_id;
    320322                                $variant_name = $doshii_custom_variant_record->doshii_product_variant_name;
     323                                $variant_customPosId = $doshii_custom_variant_record->doshii_custom_id;
    321324                                if (empty($variant_name)) {
    322325                                    $variant_name = $meta->value;
     
    333336                        } else {
    334337                            array_push($variants, (object)[
    335                                 'posId' => $variant_posId,
     338                                'posId' => !empty($variant_customPosId) && strpos($variant_customPosId, "doshii:") === 0 ? $variant_customPosId : $variant_posId,
    336339                                'name' => $variant_name,
    337340                                'price' => 0
     
    452455                                            $variant_posId = $doshii_variant_record->doshii_product_variant_id;
    453456                                            $variant_name = $doshii_variant_record->doshii_product_variant_name;
     457                                            $variant_customPosId = $doshii_variant_record->doshii_custom_id;
    454458                                            if (empty($variant_name)) {
    455459                                                $doshii_custom_variant_sql = "SELECT * FROM $doshii_product_variant_tbl where doshii_product_id = '$mappedProductId' AND doshii_product_option_id='$option_posId' AND doshii_custom_id='$metaVariantId'";
     
    458462                                                $variant_posId = $doshii_custom_variant_record->doshii_product_variant_id;
    459463                                                $variant_name = $doshii_custom_variant_record->doshii_product_variant_name;
     464                                                $variant_customPosId = $doshii_custom_variant_record->doshii_custom_id;
    460465                                                if (empty($variant_name)) {
    461466                                                    $variant_name = empty($ppomOptionVariant->label) ? $metaVariantName : $ppomOptionVariant->label;
     
    470475                                            } else {
    471476                                                array_push($variants, (object)[
    472                                                     'posId' => $variant_posId,
     477                                                    'posId' => !empty($variant_customPosId) && strpos($variant_customPosId, "doshii:") === 0 ? $variant_customPosId : $variant_posId,
    473478                                                    'name' => $variant_name,
    474479                                                    'price' => doshii_to_cents($ppomOptionVariant->price)
     
    630635                'accept' => 'application/json',
    631636                'Accept-encoding' => 'gzip',
    632                 'x-doshii-writeout' => 'WooCommerce 2.5.1',
     637                'x-doshii-writeout' => 'WooCommerce 2.5.2',
    633638            ),
    634639            'body' => json_encode($doshiiOrderPayload)
  • doshii/trunk/include/woo-order-status.php

    r2814409 r2817460  
    3939                'x-doshii-location-id' => $doshii_options['location_id'].'',
    4040                'content-Type' => 'application/json',
    41                 'x-doshii-writeout' => 'WooCommerce 2.5.1',
     41                'x-doshii-writeout' => 'WooCommerce 2.5.2',
    4242            )
    4343        ));
Note: See TracChangeset for help on using the changeset viewer.