Plugin Directory

Changeset 2858048


Ignore:
Timestamp:
02/01/2023 02:29:22 AM (3 years ago)
Author:
delyva
Message:

v1.1.43

Location:
delyvax/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • delyvax/trunk/delyvax.php

    r2854047 r2858048  
    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.42
     6    Version: 1.1.43
    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.42');
     15    define('DELYVAX_PLUGIN_VERSION', '1.1.43');
    1616
    1717    require_once plugin_dir_path(__FILE__) . 'functions.php';
  • delyvax/trunk/functions.php

    r2850327 r2858048  
    766766          array_push($addons, $insurance);
    767767      }
     768
     769      $referenceNo = $main_order->get_id();
    768770      //
    769771
    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);
    771773
    772774      if($resultCreate)
  • delyvax/trunk/includes/delyvax-api.php

    r2807720 r2858048  
    6363        }
    6464
    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)
    6666        {
    6767              $url = Self::$api_endpoint . "/order";// . trim(esc_attr($settings['integration_id']), " ");
     
    9090                      'note' => $order_notes,
    9191                      "serviceAddon" => $addons,
    92                       'source'=> $source
     92                      'source'=> $source,
     93                      'referenceNo'=> $referenceNo.""
    9394                  ];
    9495              }else {
     
    103104                      'note' => $order_notes,
    104105                      "serviceAddon" => $addons,
    105                       'source'=> $source
     106                      'source'=> $source,
     107                      'referenceNo'=> $referenceNo.""
    106108                  ];
    107109              }
  • delyvax/trunk/includes/delyvax-shipping.php

    r2854047 r2858048  
    321321                'type' => 'text',
    322322                'default' => __('1', 'delyvax'),
    323                 'id' => 'delyvax_rate_rate_currency_conversion'
     323                'id' => 'delyvax_rate_currency_conversion'
    324324            ),
    325325            'rate_adjustment_type' => array(
    326326                'title' => __('Rate Adjustment Type ("discount"/"markup")', 'delyvax'),
    327327                'default' => __('discount', 'delyvax'),
    328                 'id' => 'delyvax_rate_rate_adjustment_type',
     328                'id' => 'delyvax_rate_adjustment_type',
    329329                'type'    => 'select',
    330330                'options' => array(
     
    710710            if(isset($rates['services']))
    711711            {
    712                 $services = $rates['services'];
     712                        $services = $rates['services'];
     713
    713714                if(sizeof($services) > 0)
    714715                {
     
    718719                                  if (isset($shipper['service']['name']))
    719720                          {
     721                              $cost = round($shipper['price']['amount'], 2);
     722
    720723                                        $rate_adjustment_type = $settings['rate_adjustment_type'] ?? 'discount';
    721724
     
    735738                              $free_shipping_type = $settings['free_shipping_type'] ?? '';
    736739                              $free_shipping_condition = $settings['free_shipping_condition'] ?? '';
    737                               $free_shipping_value = $settings['free_shipping_value'] ?? '0';
     740                              $free_shipping_value = $settings['free_shipping_value'] ?? '';
    738741
    739742                              if($free_shipping_type == 'total_quantity')
  • delyvax/trunk/readme.txt

    r2854047 r2858048  
    44Requires at least: 5.4
    55Tested up to: 6.1
    6 Stable tag: 1.1.42
     6Stable tag: 1.1.43
    77Requires PHP: 7.2
    88License: GPLv3
     
    3232
    3333== Changelog ==
     34
     35= 1.1.43 =
     36*Release Date - 25th January 2023*
     37
     38* Send WooCommerce order id as reference no.
    3439
    3540= 1.1.42 =
Note: See TracChangeset for help on using the changeset viewer.