Plugin Directory

Changeset 2933612


Ignore:
Timestamp:
07/04/2023 02:55:39 AM (3 years ago)
Author:
doshii
Message:

Submitting changes for release 2.5.7

Location:
doshii/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • doshii/trunk/README.txt

    r2896932 r2933612  
    55Requires at least: 4.7
    66Tested up to: 6.2
    7 Stable tag: 2.5.6
     7Stable tag: 2.5.7
    88Requires PHP: 7.0
    99License: GPLv2 or later
     
    5959
    6060== Changelog ==
     61
     62= 2.5.7 =
     63
     64Fixed issue where some discounts were resulting in invalid pricing to be submitted
    6165
    6266= 2.5.6 =
  • doshii/trunk/doshii_function.php

    r2896932 r2933612  
    77Author URI: https://www.doshii.io
    88Contributors:
    9 Version: 2.5.6
     9Version: 2.5.7
    1010*/
    1111
  • doshii/trunk/include/woo-doshii-initialise.php

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

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

    r2896932 r2933612  
    640640                }
    641641            }
    642             $doshiiItem->unitPrice = ($centAmount / $quantity) - $optionVariantPrice;
     642            $doshiiItem->unitPrice = intval(round(($centAmount / $quantity) - $optionVariantPrice));
    643643            array_push($itemData, $doshiiItem);
    644644        }
     
    739739                'accept' => 'application/json',
    740740                'Accept-encoding' => 'gzip',
    741                 'x-doshii-writeout' => 'WooCommerce 2.5.6',
     741                'x-doshii-writeout' => 'WooCommerce 2.5.7',
    742742            ),
    743743            'body' => json_encode($doshiiOrderPayload)
  • doshii/trunk/include/woo-order-status.php

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