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

Version 3.97: Add city variable

parent ff49131e
Branches
Tags V3.97
No related merge requests found
...@@ -2,7 +2,7 @@ BASE=rules_shipping ...@@ -2,7 +2,7 @@ BASE=rules_shipping
BASE_ADV=rules_shipping_advanced BASE_ADV=rules_shipping_advanced
PLUGINTYPE=vmshipment PLUGINTYPE=vmshipment
ZIPBASE=opentools_vm2 ZIPBASE=opentools_vm2
VERSION=3.96 VERSION=3.97
PLUGINFILES=$(BASE).php $(BASE)_base.php $(BASE).script.php $(BASE).xml index.html PLUGINFILES=$(BASE).php $(BASE)_base.php $(BASE).script.php $(BASE).xml index.html
PLUGINFILES_ADV=$(BASE_ADV).php $(BASE)_base.php $(BASE_ADV).script.php $(BASE_ADV).xml index.html PLUGINFILES_ADV=$(BASE_ADV).php $(BASE)_base.php $(BASE_ADV).script.php $(BASE_ADV).xml index.html
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File added
File added
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<authorUrl>http://www.open-tools.net</authorUrl> <authorUrl>http://www.open-tools.net</authorUrl>
<copyright>Copyright (C) 2013, Reinhold Kainhofer</copyright> <copyright>Copyright (C) 2013, Reinhold Kainhofer</copyright>
<license>GPL v3+</license> <license>GPL v3+</license>
<version>3.96</version> <version>3.97</version>
<description>VMSHIPMENT_RULES_DESC</description> <description>VMSHIPMENT_RULES_DESC</description>
<files> <files>
<filename plugin="rules_shipping">rules_shipping.php</filename> <filename plugin="rules_shipping">rules_shipping.php</filename>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<authorUrl>http://www.open-tools.net</authorUrl> <authorUrl>http://www.open-tools.net</authorUrl>
<copyright>Copyright (C) 2013, Reinhold Kainhofer</copyright> <copyright>Copyright (C) 2013, Reinhold Kainhofer</copyright>
<license>GPL v3+</license> <license>GPL v3+</license>
<version>3.95</version> <version>3.97</version>
<description>VMSHIPMENT_RULES_ADV_DESC</description> <description>VMSHIPMENT_RULES_ADV_DESC</description>
<files> <files>
<filename plugin="rules_shipping_advanced">rules_shipping_advanced.php</filename> <filename plugin="rules_shipping_advanced">rules_shipping_advanced.php</filename>
......
...@@ -585,7 +585,7 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin { ...@@ -585,7 +585,7 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin {
} }
protected function getCartValues (VirtueMartCart $cart, $method, $cart_prices) { protected function getCartValues (VirtueMartCart $cart, $method, $cart_prices) {
$address = (($cart->ST == 0) ? $cart->BT : $cart->ST); $address = (($cart->ST == 0) ? $cart->BT : $cart->ST);
$zip = trim($address['zip']); $zip = isset($address['zip'])?trim($address['zip']):'';
$cartvals = array('zip'=>$zip, $cartvals = array('zip'=>$zip,
'zip1'=>substr($zip,0,1), 'zip1'=>substr($zip,0,1),
'zip2'=>substr($zip,0,2), 'zip2'=>substr($zip,0,2),
...@@ -593,6 +593,7 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin { ...@@ -593,6 +593,7 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin {
'zip4'=>substr($zip,0,4), 'zip4'=>substr($zip,0,4),
'zip5'=>substr($zip,0,5), 'zip5'=>substr($zip,0,5),
'zip6'=>substr($zip,0,6), 'zip6'=>substr($zip,0,6),
'city'=>isset($address['city'])?trim($address['city']):'',
'articles'=>$this->getOrderArticles($cart), 'articles'=>$this->getOrderArticles($cart),
'products'=>$this->getOrderProducts($cart), 'products'=>$this->getOrderProducts($cart),
'amount'=>$cart_prices['salesPrice'], 'amount'=>$cart_prices['salesPrice'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment