diff --git a/includes/wcwuunder-create.php b/includes/wcwuunder-create.php index 6003410..4792751 100644 --- a/includes/wcwuunder-create.php +++ b/includes/wcwuunder-create.php @@ -6,7 +6,15 @@ class WC_Wuunder_Create { public $order_id; - private $version_obj = array("product" => "Woocommerce extension", "version" => array("build" => "2.3.1", "plugin" => "2.0")); + private $version_obj = array( + "product" => "Woocommerce extension", + "version" => array( + "build" => "2.4.0", + "plugin" => "2.0"), + "platform" => array( + "name" => "OpenCart", + "build" => VERSION + )); public function __construct() { @@ -18,13 +26,13 @@ public function __construct() wp_enqueue_style('wuunder-admin', (dirname(plugin_dir_url(__FILE__)) . '/assets/css/wuunder-admin.css')); add_action('woocommerce_before_checkout_form', - function(){ - echo '

Hier komt de parcelshop locator

'; - $file = "/var/www/html/log.txt"; - $current = file_get_contents($file); - $current .= "checkout reached"; - file_put_contents($file, $current); - }); + function () { + echo '

Hier komt de parcelshop locator

'; + $file = "/var/www/html/log.txt"; + $current = file_get_contents($file); + $current .= "checkout reached"; + file_put_contents($file, $current); + }); } public function sample_admin_notice__error() diff --git a/woocommerce-wuunder.php b/woocommerce-wuunder.php index 899732b..1039f25 100644 --- a/woocommerce-wuunder.php +++ b/woocommerce-wuunder.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Wuunder * Plugin URI: http://wearewuunder.com * Description: Wuunder shipping plugin - * Version: 2.3.1 + * Version: 2.4.0 * Author: Wuunder * Author URI: http://wearewuunder.com */ @@ -51,7 +51,7 @@ class Woocommerce_Wuunder public static $plugin_path; public static $plugin_basename; - const VERSION = '2.3.1'; + const VERSION = '2.4.0'; public function __construct() {