Plugin Directory

Changeset 2989488


Ignore:
Timestamp:
11/06/2023 01:44:23 AM (2 years ago)
Author:
jtexpress
Message:

insurance

Location:
jt-express/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • jt-express/trunk/README.txt

    r2607825 r2989488  
    44Tags: jtexpress, j&t express, j&t malaysia, jnt
    55Requires at least: 5.1
    6 Tested up to: 5.7
     6Tested up to: 6.3.2
    77Requires PHP: 7.2
    88Stable tag: 1.0
  • jt-express/trunk/admin/class-jnt-admin.php

    r2987839 r2989488  
    2626        $plugins = get_plugins();
    2727        $current_version = $plugins[$plugin_slug]['Version'];
    28         $latest_version = '2.0.3';
     28        $latest_version = '2.0.4';
    2929
    3030        if (version_compare($current_version, $latest_version, '<')) {
  • jt-express/trunk/admin/class-jnt-order.php

    r2987839 r2989488  
    3939
    4040        if (isset($setting['insurance']) && $setting['insurance'] == 'yes') {
    41             $action['jnt_create_order_insurance'] = __('Order to J&T with Insurance');
     41            $actions['jnt_create_order_insurance'] = __('Order to J&T with Insurance');
    4242        }
    4343
  • jt-express/trunk/includes/class-jnt-api.php

    r2987839 r2989488  
    3838                        "payType" => $value['payType'],
    3939                        "cod" => $value['cod'],
    40                         "offerFeeFlag" => $value['offerFeeFlag'],
    41                         "insurance" => $value['insurance']
     40                        "offerFeeFlag" => $value['offerFeeFlag']
    4241                    ]
    4342                ]
  • jt-express/trunk/includes/class-jnt-helper.php

    r2987839 r2989488  
    9191            }
    9292
    93             $insurance = "";
    94             if ($insuranceFlag) {
    95                 $insurance = $subtotal * 0.01;
    96                 if ($insurance < 1) {
    97                     $insurance = 1;
    98                 }
    99             }
    100 
    10193            $items = array(
    10294                'id'    => $id,
     
    112104                'goodsdesc' => $order->customer_message,
    113105                'cod' => $cod,
    114                 'offerFeeFlag' => $insuranceFlag,
    115                 'insurance' => $insurance
     106                'offerFeeFlag' => $insuranceFlag
    116107            );
    117108
  • jt-express/trunk/includes/class-jnt-shipping.php

    r2987839 r2989488  
    9797            ),
    9898
     99            'insurance' => array(
     100                'title' => __('Insurance', 'jnt'),
     101                'type' => 'checkbox',
     102                'description' => __('Tick this to allow order with insurance option.', 'jnt'),
     103            ),
     104
    99105        );
    100106    }
  • jt-express/trunk/jnt.php

    r2987839 r2989488  
    55Description: WooCommerce integration for J&T Express Malaysia.
    66Author: woocs
    7 Version: 2.0.3
     7Version: 2.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
     
    1414}
    1515
    16 define('JNT_VERSION', '2.0.3');
     16define('JNT_VERSION', '2.0.4');
    1717define('JNT_PLUGIN_DIR', plugin_dir_path(__FILE__));
    1818
Note: See TracChangeset for help on using the changeset viewer.