Plugin Directory

Changeset 2988119


Ignore:
Timestamp:
11/02/2023 03:15:10 PM (2 years ago)
Author:
cocolis
Message:

Always send content_value to API on ride creation to allow customers with insurance enabled by default to be able to create rides

Location:
cocolis
Files:
126 added
3 edited

Legend:

Unmodified
Added
Removed
  • cocolis/trunk/class/wc-cocolis-payment.php

    r2913717 r2988119  
    224224                }
    225225
     226                $content_value = (float) ($order->get_total() - $order->get_total_tax() - $order->get_shipping_tax()) * 100; // In cents
    226227                $params = [
    227228                    "description" => "Livraison de la commande : " . implode(", ", $arrayname) . " vendue sur le site marketplace.",
     
    244245                    "environment" => "objects",
    245246                    "photo_urls" => $images,
     247                    "content_value" => $content_value, // In cents
    246248                    "rider_extra_information" => "Livraison de la commande : " . implode(", ", $arrayname),
    247249                    "ride_objects_attributes" => $arrayproducts,
     
    272274
    273275                    $params_insurance = [
    274                         "content_value" => ($order->get_total() - $order->get_total_shipping() - $order->get_shipping_tax()) * 100,
    275276                        "ride_delivery_information_attributes" => [
    276277                            "insurance_firstname" => $order_shipping_first_name,
  • cocolis/trunk/readme.txt

    r2980489 r2988119  
    5555
    5656== Changelog ==
     57= 1.1.0 =
     58* Always send content_value to API on ride creation to allow customers with insurance enabled by default to be able to create rides
     59
    5760= 1.0.14 =
    5861* Update message about insurance
  • cocolis/trunk/wc-cocolis-shipping.php

    r2980495 r2988119  
    77 * Author:  Cocolis.fr
    88 * Author URI: https://www.cocolis.fr
    9  * Version: 1.0.14
     9 * Version: 1.1.0
    1010 * Developer: Alexandre BETTAN, Sebastien FIELOUX
    1111 * Developer URI: https://github.com/btnalexandre, https://github.com/sebfie
Note: See TracChangeset for help on using the changeset viewer.