Plugin Directory

Changeset 2850327


Ignore:
Timestamp:
01/18/2023 09:25:25 AM (3 years ago)
Author:
delyva
Message:

v1.1.41

Location:
delyvax/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • delyvax/trunk/changelog.txt

    r2804159 r2850327  
    55This file contains older changelog entries, so we can keep the size of the standard WordPress readme.txt file reasonable.
    66For the latest changes, please see the "Changelog" section of the [readme.txt file](https://plugins.svn.wordpress.org/delyvax/trunk/readme.txt).
     7
     8= 1.1.34 =
     9*Release Date - 29th October 2022*
     10
     11* Free shipping feature.
     12
     13= 1.1.33 =
     14*Release Date - 25th October 2022*
     15
     16* Bug-fixes for volumetric weight calculation.
     17
     18= 1.1.32 =
     19*Release Date - 16th October 2022*
     20
     21* Bug-fixes.
     22
     23= 1.1.31 =
     24*Release Date - 14th October 2022*
     25
     26* Fixed create delivery order issue for sub-order.
     27
     28= 1.1.30 =
     29*Release Date - 2nd June 2022*
     30
     31* Fix warning message.
     32
     33= 1.1.29 =
     34*Release Date - 29th March 2022*
     35
     36* Enable display rates on the Cart page.
     37
     38= 1.1.28 =
     39*Release Date - 28th March 2022*
     40
     41* Can exclude description in the note.
     42
     43= 1.1.27 =
     44*Release Date - 8th March 2022*
     45
     46* Change order status to Package is Ready after delivery order has been created.
    747
    848= 1.1.26 =
  • delyvax/trunk/delyvax.php

    r2848883 r2850327  
    44    Plugin URI: https://delyva.com
    55    description: The official Delyva plugin helps store owners to integrate WooCommerce with [Delyva](https://delyva.com) for seamless service comparison and order processing.
    6     Version: 1.1.40
     6    Version: 1.1.41
    77    Author: Delyva
    88    Author URI: https://delyva.com
     
    1313    defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    1414    define('DELYVAX_API_ENDPOINT', 'https://api.delyva.app/');
    15     define('DELYVAX_PLUGIN_VERSION', '1.1.40');
     15    define('DELYVAX_PLUGIN_VERSION', '1.1.41');
    1616
    1717    require_once plugin_dir_path(__FILE__) . 'functions.php';
  • delyvax/trunk/functions.php

    r2848883 r2850327  
    10291029    $weight_unit = get_option('woocommerce_weight_unit');
    10301030    // convert other unit into kg
    1031     if ($weight_unit != 'kg') {
    1032         if ($weight_unit == 'g') {
    1033             return $weight * 0.001;
    1034         } else if ($weight_unit == 'lbs') {
    1035             return $weight * 0.453592;
    1036         } else if ($weight_unit == 'oz') {
    1037             return $weight * 0.0283495;
     1031
     1032    if($weight > 0)
     1033    {
     1034        if ($weight_unit != 'kg') {
     1035            if ($weight_unit == 'g') {
     1036                return $weight * 0.001;
     1037            } else if ($weight_unit == 'lbs') {
     1038                return $weight * 0.453592;
     1039            } else if ($weight_unit == 'oz') {
     1040                return $weight * 0.0283495;
     1041            }
    10381042        }
    10391043    }
     
    10451049{
    10461050  $dimension_unit = get_option('woocommerce_dimension_unit');
     1051
    10471052  // convert other units into cm
    1048   if ($dimension_unit != 'cm') {
    1049       if ($dimension_unit == 'm') {
    1050           return $length * 100;
    1051       } else if ($dimension_unit == 'mm') {
    1052           return $length * 0.1;
    1053       } else if ($dimension_unit == 'in') {
    1054           return $length * 2.54;
    1055       } else if ($dimension_unit == 'yd') {
    1056           return $length * 91.44;
     1053  if($length > 0)
     1054  {
     1055      if ($dimension_unit != 'cm') {
     1056          if ($dimension_unit == 'm') {
     1057              return $length * 100;
     1058          } else if ($dimension_unit == 'mm') {
     1059              return $length * 0.1;
     1060          } else if ($dimension_unit == 'in') {
     1061              return $length * 2.54;
     1062          } else if ($dimension_unit == 'yd') {
     1063              return $length * 91.44;
     1064          }
    10571065      }
    10581066  }
  • delyvax/trunk/readme.txt

    r2848883 r2850327  
    3333== Changelog ==
    3434
     35= 1.1.41 =
     36*Release Date - 18th January 2023*
     37
     38* Bug-fixes for non-numeric or empty dimension or weight.
     39
    3540= 1.1.40 =
    3641*Release Date - 16th January 2023*
     
    6368* Better support for COD & Insurance Cover.
    6469
    65 = 1.1.34 =
    66 *Release Date - 29th October 2022*
    67 
    68 * Free shipping feature.
    69 
    70 = 1.1.33 =
    71 *Release Date - 25th October 2022*
    72 
    73 * Bug-fixes for volumetric weight calculation.
    74 
    75 = 1.1.32 =
    76 *Release Date - 16th October 2022*
    77 
    78 * Bug-fixes.
    79 
    80 = 1.1.31 =
    81 *Release Date - 14th October 2022*
    82 
    83 * Fixed create delivery order issue for sub-order.
    84 
    85 = 1.1.30 =
    86 *Release Date - 2nd June 2022*
    87 
    88 * Fix warning message.
    89 
    90 = 1.1.29 =
    91 *Release Date - 29th March 2022*
    92 
    93 * Enable display rates on the Cart page.
    94 
    95 = 1.1.28 =
    96 *Release Date - 28th March 2022*
    97 
    98 * Can exclude description in the note.
    99 
    100 = 1.1.27 =
    101 *Release Date - 8th March 2022*
    102 
    103 * Change order status to Package is Ready after delivery order has been created.
    104 
    10570For older changelog entries, please see the [additional changelog.txt file](https://plugins.svn.wordpress.org/delyvax/trunk/changelog.txt) delivered with the plugin.
Note: See TracChangeset for help on using the changeset viewer.