public function getCheckoutOptions() { $shipping_method_service = new ShippingMethodService(); $payment_method_service = new PaymentMethodService(); $customer = context::getCustomer(); $zones = []; if ($customer != NULL) { //load country and zones $customer->load('defaultAddress', 'addresses'); } return Response::json(['customer' => $customer, 'shipping_methods' => $shipping_method_service->getAll(['sorting' => ['sort_order']], context::getLanguageId()), 'payment_methods' => $payment_method_service->getAll(['sorting' => ['sort_order']], context::getLanguageId())]); }