Changeset 2858048
- Timestamp:
- 02/01/2023 02:29:22 AM (3 years ago)
- Location:
- delyvax/trunk
- Files:
-
- 5 edited
-
delyvax.php (modified) (2 diffs)
-
functions.php (modified) (1 diff)
-
includes/delyvax-api.php (modified) (3 diffs)
-
includes/delyvax-shipping.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
delyvax/trunk/delyvax.php
r2854047 r2858048 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 26 Version: 1.1.43 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 2');15 define('DELYVAX_PLUGIN_VERSION', '1.1.43'); 16 16 17 17 require_once plugin_dir_path(__FILE__) . 'functions.php'; -
delyvax/trunk/functions.php
r2850327 r2858048 766 766 array_push($addons, $insurance); 767 767 } 768 769 $referenceNo = $main_order->get_id(); 768 770 // 769 771 770 $resultCreate = DelyvaX_Shipping_API::postCreateOrder($order, $origin, $destination, $weight, $serviceCode, $order_notes, $addons );772 $resultCreate = DelyvaX_Shipping_API::postCreateOrder($order, $origin, $destination, $weight, $serviceCode, $order_notes, $addons, $referenceNo); 771 773 772 774 if($resultCreate) -
delyvax/trunk/includes/delyvax-api.php
r2807720 r2858048 63 63 } 64 64 65 public static function postCreateOrder($order, $origin, $destination, $weight, $serviceCode, $order_notes, $addons )65 public static function postCreateOrder($order, $origin, $destination, $weight, $serviceCode, $order_notes, $addons, $referenceNo) 66 66 { 67 67 $url = Self::$api_endpoint . "/order";// . trim(esc_attr($settings['integration_id']), " "); … … 90 90 'note' => $order_notes, 91 91 "serviceAddon" => $addons, 92 'source'=> $source 92 'source'=> $source, 93 'referenceNo'=> $referenceNo."" 93 94 ]; 94 95 }else { … … 103 104 'note' => $order_notes, 104 105 "serviceAddon" => $addons, 105 'source'=> $source 106 'source'=> $source, 107 'referenceNo'=> $referenceNo."" 106 108 ]; 107 109 } -
delyvax/trunk/includes/delyvax-shipping.php
r2854047 r2858048 321 321 'type' => 'text', 322 322 'default' => __('1', 'delyvax'), 323 'id' => 'delyvax_rate_ rate_currency_conversion'323 'id' => 'delyvax_rate_currency_conversion' 324 324 ), 325 325 'rate_adjustment_type' => array( 326 326 'title' => __('Rate Adjustment Type ("discount"/"markup")', 'delyvax'), 327 327 'default' => __('discount', 'delyvax'), 328 'id' => 'delyvax_rate_ rate_adjustment_type',328 'id' => 'delyvax_rate_adjustment_type', 329 329 'type' => 'select', 330 330 'options' => array( … … 710 710 if(isset($rates['services'])) 711 711 { 712 $services = $rates['services']; 712 $services = $rates['services']; 713 713 714 if(sizeof($services) > 0) 714 715 { … … 718 719 if (isset($shipper['service']['name'])) 719 720 { 721 $cost = round($shipper['price']['amount'], 2); 722 720 723 $rate_adjustment_type = $settings['rate_adjustment_type'] ?? 'discount'; 721 724 … … 735 738 $free_shipping_type = $settings['free_shipping_type'] ?? ''; 736 739 $free_shipping_condition = $settings['free_shipping_condition'] ?? ''; 737 $free_shipping_value = $settings['free_shipping_value'] ?? ' 0';740 $free_shipping_value = $settings['free_shipping_value'] ?? ''; 738 741 739 742 if($free_shipping_type == 'total_quantity') -
delyvax/trunk/readme.txt
r2854047 r2858048 4 4 Requires at least: 5.4 5 5 Tested up to: 6.1 6 Stable tag: 1.1.4 26 Stable tag: 1.1.43 7 7 Requires PHP: 7.2 8 8 License: GPLv3 … … 32 32 33 33 == Changelog == 34 35 = 1.1.43 = 36 *Release Date - 25th January 2023* 37 38 * Send WooCommerce order id as reference no. 34 39 35 40 = 1.1.42 =
Note: See TracChangeset
for help on using the changeset viewer.