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

V4.3: Fix handling of STSameAsBT flag (shipping address same as billing - Checkbox)

parent 2e122f12
Branches
Tags
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -598,7 +598,7 @@ class plgVmShipmentRules_Shipping_Base extends vmPSPlugin {
protected function addCustomCartValues (VirtueMartCart $cart, $cart_prices, &$values) {
}
protected function getCartValues (VirtueMartCart $cart, $method, $cart_prices) {
$address = (($cart->ST == 0) ? $cart->BT : $cart->ST);
$address = (($cart->ST == 0 || $cart->STSameAsBT == 1) ? $cart->BT : $cart->ST);
$zip = isset($address['zip'])?trim($address['zip']):'';
$cartvals = array('zip'=>$zip,
'zip1'=>substr($zip,0,1),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment