Skip to content

Commit

Permalink
Fix no error on both address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyklapatch committed Jun 9, 2018
1 parent e5350e9 commit 44538c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

foreach ($fields as $field) {
if (!(($shippingAddress->get($field) === $values[$field]) || ($billingAddress->get($field) === $values[$field]))) {
return $modx->getChunk($errorTpl, ['order' => $order]);
return $modx->getChunk($errorTpl, ['order' => $order, 'error' => $modx->lexicon('commerce_guestorder.error_both_addr')]);
}
}

Expand Down Expand Up @@ -214,4 +214,4 @@
$output = '<pre>' . print_r($data, true) . '</pre>';
}

return $output;
return $output;

0 comments on commit 44538c0

Please sign in to comment.