Changeset 2891774
- Timestamp:
- 04/01/2023 10:17:58 AM (3 years ago)
- Location:
- delyvax/trunk
- Files:
-
- 5 edited
-
delyvax.php (modified) (2 diffs)
-
functions.php (modified) (1 diff)
-
includes/delyvax-shipping.php (modified) (1 diff)
-
includes/shipping-widget.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
delyvax/trunk/delyvax.php
r2883998 r2891774 4 4 Plugin URI: https://delyva.com 5 5 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.4 86 Version: 1.1.49 7 7 Author: Delyva 8 8 Author URI: https://delyva.com … … 13 13 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 14 14 define('DELYVAX_API_ENDPOINT', 'https://api.delyva.app/'); 15 define('DELYVAX_PLUGIN_VERSION', '1.1.4 8');15 define('DELYVAX_PLUGIN_VERSION', '1.1.49'); 16 16 17 17 require_once plugin_dir_path(__FILE__) . 'functions.php'; -
delyvax/trunk/functions.php
r2882937 r2891774 642 642 { 643 643 $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())); 648 648 }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())); 653 653 } 654 654 }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())); 659 659 } 660 660 -
delyvax/trunk/includes/delyvax-shipping.php
r2882937 r2891774 838 838 } 839 839 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 844 842 $rate = array( 845 843 'id' => $service_code, -
delyvax/trunk/includes/shipping-widget.php
r2883998 r2891774 334 334 && ( $DelyvaXServiceCode == $service->code || $DelyvaXServiceCode == $service->serviceCompanyCode ) ) 335 335 { 336 echo '<option value="'.$service-> code.'" selected>'.$serviceName.'</option>';336 echo '<option value="'.$service->serviceCompanyCode.'" selected>'.$serviceName.'</option>'; 337 337 }else { 338 echo '<option value="'.$service-> code.'">'.$serviceName.'</option>';338 echo '<option value="'.$service->serviceCompanyCode.'">'.$serviceName.'</option>'; 339 339 } 340 340 } -
delyvax/trunk/readme.txt
r2883998 r2891774 4 4 Requires at least: 5.4 5 5 Tested up to: 6.1 6 Stable tag: 1.1.4 76 Stable tag: 1.1.49 7 7 Requires PHP: 7.2 8 8 License: GPLv3 … … 32 32 33 33 == Changelog == 34 35 = 1.1.49 = 36 *Release Date - 31st March 2023* 37 38 * Bug fixes for empty weight, default to 1kg. 34 39 35 40 = 1.1.48 =
Note: See TracChangeset
for help on using the changeset viewer.