Skip to content
Snippets Groups Projects
Commit ca1e8414 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V1.2.5: New variables userroles, userid, username, first_name, last_name, email

parent ece8b6e0
No related branches found
No related tags found
No related merge requests found
BASE=shipping-by-rules
PLATTFORM=woocommerce
VENDOR=opentools
VERSION=1.2.4
VERSION=1.2.5
DIR = $(shell pwd)
SVNDIR=wordpress-plugin-svn
......
......@@ -307,6 +307,11 @@ class RulesShippingFrameworkWooCommerce extends RulesShippingFramework {
/* Get the user from the package information and extract further information about the buyer */
$user = $cart['user'];
$data['userid'] = $user['ID'];
$data['userroles'] = array();
$data['username'] = '';
$data['first_name'] = '';
$data['last_name'] = '';
$data['email'] = '';
if ($user['ID']>0) {
$userinfo = get_userdata($user['ID']);
$data['userroles'] = $userinfo->roles;
......
......@@ -3,7 +3,7 @@ Contributors: opentools
Tags: WooCommerce, Shipment, Shipping
Requires at least: 4.0
Tested up to: 4.5
Stable tag: 1.2.4
Stable tag: 1.2.5
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl.html
......
......@@ -3,7 +3,7 @@ Contributors: opentools
Tags: WooCommerce, Shipment, Shipping, Rules shipping
Requires at least: 4.0
Tested up to: 4.5
Stable tag: 1.2.4
Stable tag: 1.2.5
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl.html
......@@ -69,6 +69,11 @@ Please see our support forum at http://open-tools.net/forum/. It might also be a
== Changelog ==
= 1.2.5 =
* Add variables username, first_name, last_name, email
* Add list variable userroles (advanced version only)
* Fix issue with debug_variables
= 1.2.4 =
* Fix incompatibility with Cash on Delivery (returned id should be prefixed with the method ID)
* Fix opentools_shipping_by_rules_get_cart_values filter using indefined argument
......
File added
File added
......@@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Advanced Shipping By Rules
* Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html
* Description: Define Shipping cost by very general and flexible (text-based) rules. The advanced version also provides mathematical expressions and functions
* Version: 1.2.4
* Version: 1.2.5
* Author: Open Tools, Reinhold Kainhofer
* Author URI: http://open-tools.net
* Text Domain: woocommerce-advanced-shipping-by-rules
......@@ -75,7 +75,7 @@ class WooCommerce_Shipping_By_Rules_Advanced {
* @since 1.0.0
* @var string $version Plugin version number.
*/
public $version = '1.2.4';
public $version = '1.2.5';
/**
......
......@@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Shipping By Rules
* Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html
* Description: Define Shipping cost by very general and flexible (text-based) rules.
* Version: 1.2.4
* Version: 1.2.5
* Author: Open Tools, Reinhold Kainhofer
* Author URI: http://open-tools.net
* Text Domain: woocommerce-shipping-by-rules
......@@ -48,7 +48,7 @@ class WooCommerce_Shipping_By_Rules {
* @since 1.0.0
* @var string $version Plugin version number.
*/
public $version = '1.2.4';
public $version = '1.2.5';
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment