Plugin Directory

Changeset 3277959


Ignore:
Timestamp:
04/21/2025 08:10:27 AM (12 months ago)
Author:
olivery
Message:

Remove Rounding for COD

Location:
connect-plus-for-woocommerce
Files:
38 added
3 edited

Legend:

Unmodified
Added
Removed
  • connect-plus-for-woocommerce/trunk/README.txt

    r3270172 r3277959  
    99Tested up to: 6.6
    1010
    11 Stable tag: 1.0.17
     11Stable tag: 1.0.18
    1212
    1313Requires PHP: 7.0
  • connect-plus-for-woocommerce/trunk/connect-plus-for-woocommerce.php

    r3270172 r3277959  
    1717 * Plugin URI:        https://website.olivery.app/
    1818 * Description:       Plugin to help you connect WooCommerce with Connect Plus application
    19  * Version:           1.0.17
     19 * Version:           1.0.18
    2020 * Author:            Olivery dev
    2121 * Text Domain:       connect-plus-for-woocommerce
     
    4040define('CPFW_PLUGIN_DIR', __DIR__);
    4141
    42 define('PLUGIN_VERSION','1.0.17');
     42define('PLUGIN_VERSION','1.0.18');
    4343/**
    4444 * The code that runs during plugin activation.
  • connect-plus-for-woocommerce/trunk/includes/services/cpfw-connect-api.php

    r3270172 r3277959  
    167167                    "product_info": ' . wp_json_encode($cpfw_products_detail?:'', JSON_UNESCAPED_UNICODE). ',
    168168                    "package_cost": ' . $cpfw_the_order->get_subtotal() . ',
    169                     "delivery_fee": ' . intval($cpfw_the_order->get_shipping_total() ?: 0) . ',
    170                     "total_cod": ' . intval($cpfw_the_order->get_total() ?: 0) . ',
     169                    "delivery_fee": ' . floatval($cpfw_the_order->get_shipping_total() ?: 0) . ',
     170                    "total_cod": ' . floatval($cpfw_the_order->get_total() ?: 0) . ',
    171171                    "payment_method": "' . sanitize_text_field($cpfw_the_order->get_payment_method_title()) . '",
    172172                    "ecommerce_version":"'.PLUGIN_VERSION.'",
Note: See TracChangeset for help on using the changeset viewer.