function setAddress() { $shipping = new shipping(); $shipping->shippingmethod->setAddress($this->params['shipping_address']); $shipping->refresh(); $ar = new expAjaxReply(200, 'ok', new address($shipping->shippingmethod->addresses_id), array('controller' => 'cart', 'action' => 'checkout')); $ar->send(); }