Plugin Directory

Changeset 2544695


Ignore:
Timestamp:
06/09/2021 12:56:56 AM (5 years ago)
Author:
delyva
Message:

version 1.1.9

Location:
delyvax/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • delyvax/trunk/delyvax.php

    r2539713 r2544695  
    44    Plugin URI: https://delyva.com/solutions
    55    description: The official DelyvaX plugin helps store owners to integrate WooCommerce with [DelyvaX](https://delyva.com/solutions) for seamless service comparison and order processing.
    6     Version: 1.1.8
     6    Version: 1.1.9
    77    Author: DelyvaX
    88    Author URI: https://delyva.com/solutions
     
    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.8');
     15    define('DELYVAX_PLUGIN_VERSION', '1.1.9');
    1616
    1717    require_once plugin_dir_path(__FILE__) . 'functions.php';
  • delyvax/trunk/functions.php

    r2539396 r2544695  
    725725          "inventory" => $inventories,
    726726          "contact" => array(
    727               "name" => $order->get_shipping_first_name().' '.$order->get_shipping_last_name(),
     727              "name" => $order->get_shipping_first_name() ? $order->get_shipping_first_name().' '.$order->get_shipping_last_name() : $order->get_billing_first_name().' '.$order->get_billing_last_name(),
    728728              "email" => $order->get_billing_email(),
    729729              "phone" => $order->get_billing_phone(),
    730730              "mobile" => $order->get_billing_phone(),
    731               "address1" => $order->get_shipping_address_1(),
    732               "address2" => $order->get_shipping_address_2(),
    733               "city" => $order->get_shipping_city(),
    734               "state" => $order->get_shipping_state(),
    735               "postcode" => $order->get_shipping_postcode(),
    736               "country" => $order->get_shipping_country(),
     731              "address1" => $order->get_shipping_address_1() ? $order->get_shipping_address_1() : $order->get_billing_address_1(),
     732              "address2" => $order->get_shipping_address_2() ? $order->get_shipping_address_2() : $order->get_billing_address_2(),
     733              "city" => $order->get_shipping_city() ? $order->get_shipping_city() : $order->get_billing_city(),
     734              "state" => $order->get_shipping_state() ? $order->get_shipping_state() : $order->get_billing_state(),
     735              "postcode" => $order->get_shipping_postcode() ? $order->get_shipping_postcode() : $order->get_billing_postcode(),
     736              "country" => $order->get_shipping_country() ? $order->get_shipping_country() : $order->get_billing_country(),
    737737              // "coord" => array(
    738738              //     "lat" => "",
  • delyvax/trunk/includes/delyvax-webhook.php

    r2539713 r2544695  
    6464
    6565  $valid_url = get_site_url()."/?delyvax=webhook";
    66   $needed_event = ['order.created', 'order.failed', 'order.updated', 'order_tracking.update'];
     66  $needed_event = ['order_tracking.update'];
    6767
    6868  try {
     
    325325                }
    326326            }
     327
     328            // TODO: Move up in next version. Leaving it here for backward compatibility with older version.
     329            if ($_GET['delyvax'] === 'webhook') {
     330              header('Content-Type: application/json');
     331              die(json_encode([
     332                'status' => 'AWE=' . $settings['api_webhook_enable'],
     333                'version' => DELYVAX_PLUGIN_VERSION,
     334              ], JSON_UNESCAPED_SLASHES));
     335            }
    327336        }
    328337    }
  • delyvax/trunk/readme.txt

    r2539713 r2544695  
    44Requires at least: 5.4
    55Tested up to: 5.7
    6 Stable tag: 1.1.8
     6Stable tag: 1.1.9
    77Requires PHP: 7.2
    88License: GPLv3
     
    3434== Changelog ==
    3535
    36 = 1.1.8 - May 30 2021 = Important Update! Fix webhook failed to verify customerId.
    37 = 1.1.7 - May 28 2021 = Bug fixes. Refactor webhook function.
    38 = 1.1.6 - May 9 2021 = Adjustments for international delivery. Supports multi-vendor with Dokan and WCFM Marketplace.
    39 = 1.1.5 - May 3 2021 = Allow push draft delivery orders.
    40 = 1.1.4 - May 3 2021 = Added 'source' and updated description.
    41 = 1.1.3 - April 30 2021 = Add custom shop contact name, mobile no and email.
    42 = 1.1.2 - April 30 2021 = Bug-fixes.
    43 = 1.1.1 - April 26 2021 = Added support for volumetric or actual weight consideration.
    44 = 1.1.0 - April 19 2021 = Bug fixes, and improvements to comply with Wordpress standards.
    45 = 1.0.0 - August 13 2020 = Initial Release.
     36= 1.1.9 =
     37*Release Date - 9 June 2021*
     38
     39* Update to handle empty shipping address
     40* Change list of required webhook event and, update webhook response
     41* Moved older changelog entries to a separate file to keep the size of this readme reasonable
     42
     43For 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.