CodeExplorer areAddressesEqual example
$this->
forward('confirm'
);
return;
} } else { $this->
View()->
assign($order);
$orderVariables =
$this->session
['sOrderVariables'
]->
getArrayCopy();
if (!
empty($orderVariables['sOrderNumber'
])) { $orderVariables['sAddresses'
]['billing'
] =
$this->
getOrderAddress($orderVariables['sOrderNumber'
], 'billing'
);
$orderVariables['sAddresses'
]['shipping'
] =
$this->
getOrderAddress($orderVariables['sOrderNumber'
], 'shipping'
);
$orderVariables['sAddresses'
]['equal'
] =
$this->
areAddressesEqual($orderVariables['sAddresses'
]['billing'
],
$orderVariables['sAddresses'
]['shipping'
]);
} $this->
View()->
assign($orderVariables);
if ($this->
View()->
getAssign('sBasketView'
)) { $this->
View()->
assign('sBasket',
$this->
View()->
getAssign('sBasketView'
));
$this->
View()->
clearAssign('sBasketView'
);
} $this->
View()->
assign('sInvalidCartItems',
$this->
getInvalidProducts($this->
View()->
getAssign('sBasket'
)));