Plugin Directory

Changeset 2891774


Ignore:
Timestamp:
04/01/2023 10:17:58 AM (3 years ago)
Author:
delyva
Message:

v1.1.49

Location:
delyvax/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • delyvax/trunk/delyvax.php

    r2883998 r2891774  
    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.48
     6    Version: 1.1.49
    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.48');
     15    define('DELYVAX_PLUGIN_VERSION', '1.1.49');
    1616
    1717    require_once plugin_dir_path(__FILE__) . 'functions.php';
  • delyvax/trunk/functions.php

    r2882937 r2891774  
    642642              {
    643643                  $product_name = $variation->get_name();
    644                   $product_weight = $variation->get_weight();
    645                   $product_length = $variation->get_length();
    646                   $product_width = $variation->get_width();
    647                   $product_height = $variation->get_height();
     644                  $product_weight = delyvax_default_weight(delyvaX_weight_to_kg($variation->get_weight()));
     645                  $product_length = delyvax_default_dimension(delyvax_dimension_to_cm($variation->get_length()));
     646                  $product_width = delyvax_default_dimension(delyvax_dimension_to_cm($variation->get_width()));
     647                  $product_height = delyvax_default_dimension(delyvax_dimension_to_cm($variation->get_height()));
    648648              }else {
    649                   $product_weight = $product->get_weight();
    650                   $product_length = $product->get_length();
    651                   $product_width = $product->get_width();
    652                   $product_height = $product->get_height();
     649                  $product_weight = delyvax_default_weight(delyvaX_weight_to_kg($product->get_weight()));
     650                  $product_length = delyvax_default_dimension(delyvax_dimension_to_cm($product->get_length()));
     651                  $product_width = delyvax_default_dimension(delyvax_dimension_to_cm($product->get_width()));
     652                  $product_height = delyvax_default_dimension(delyvax_dimension_to_cm($product->get_height()));
    653653              }
    654654          }else{
    655               $product_weight = $product->get_weight();
    656               $product_length = $product->get_length();
    657               $product_width = $product->get_width();
    658               $product_height = $product->get_height();
     655                $product_weight = delyvax_default_weight(delyvaX_weight_to_kg($product->get_weight()));
     656                $product_length = delyvax_default_dimension(delyvax_dimension_to_cm($product->get_length()));
     657                $product_width = delyvax_default_dimension(delyvax_dimension_to_cm($product->get_width()));
     658                $product_height = delyvax_default_dimension(delyvax_dimension_to_cm($product->get_height()));
    659659          }
    660660
  • delyvax/trunk/includes/delyvax-shipping.php

    r2882937 r2891774  
    838838                              }
    839839
    840                                         // $service_code = $shipper['service']['serviceCompany']['companyCode'] ? $shipper['service']['serviceCompany']['companyCode'] : $shipper['service']['code'];
    841 
    842                               $service_code = $shipper['service']['code'];
    843 
     840                              $service_code = $shipper['service']['serviceCompany']['companyCode'] ? $shipper['service']['serviceCompany']['companyCode'] : $shipper['service']['code'];
     841                           
    844842                              $rate = array(
    845843                                'id' => $service_code,
  • delyvax/trunk/includes/shipping-widget.php

    r2883998 r2891774  
    334334                && ( $DelyvaXServiceCode == $service->code || $DelyvaXServiceCode == $service->serviceCompanyCode ) )
    335335            {
    336                 echo '<option value="'.$service->code.'" selected>'.$serviceName.'</option>';
     336                echo '<option value="'.$service->serviceCompanyCode.'" selected>'.$serviceName.'</option>';
    337337            }else {
    338                 echo '<option value="'.$service->code.'">'.$serviceName.'</option>';
     338                echo '<option value="'.$service->serviceCompanyCode.'">'.$serviceName.'</option>';
    339339            }
    340340        }
  • delyvax/trunk/readme.txt

    r2883998 r2891774  
    44Requires at least: 5.4
    55Tested up to: 6.1
    6 Stable tag: 1.1.47
     6Stable tag: 1.1.49
    77Requires PHP: 7.2
    88License: GPLv3
     
    3232
    3333== Changelog ==
     34
     35= 1.1.49 =
     36*Release Date - 31st March 2023*
     37
     38* Bug fixes for empty weight, default to 1kg.
    3439
    3540= 1.1.48 =
Note: See TracChangeset for help on using the changeset viewer.