{"action":"created","issue":{"url":"https://api.github.com/repos/opencart/opencart/issues/3536","labels_url":"https://api.github.com/repos/opencart/opencart/issues/3536/labels{/name}","comments_url":"https://api.github.com/repos/opencart/opencart/issues/3536/comments","events_url":"https://api.github.com/repos/opencart/opencart/issues/3536/events","html_url":"https://github.com/opencart/opencart/issues/3536","id":112756057,"number":3536,"title":"Order edit and SSL","user":{"login":"GomDani","id":3872726,"avatar_url":"https://avatars.githubusercontent.com/u/3872726?v=3","gravatar_id":"","url":"https://api.github.com/users/GomDani","html_url":"https://github.com/GomDani","followers_url":"https://api.github.com/users/GomDani/followers","following_url":"https://api.github.com/users/GomDani/following{/other_user}","gists_url":"https://api.github.com/users/GomDani/gists{/gist_id}","starred_url":"https://api.github.com/users/GomDani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GomDani/subscriptions","organizations_url":"https://api.github.com/users/GomDani/orgs","repos_url":"https://api.github.com/users/GomDani/repos","events_url":"https://api.github.com/users/GomDani/events{/privacy}","received_events_url":"https://api.github.com/users/GomDani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-10-22T08:36:45Z","updated_at":"2016-01-06T08:03:58Z","closed_at":"2016-01-06T08:03:57Z","body":"I have an issue with order edit and store url. I need to add this for checking SSL otherwise api not work:\r\n\r\nin order list:\r\n\r\n```\r\n$data['store'] = $this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG;\r\n```\r\n\r\nin order form:\r\n\r\n```\r\n$data['stores'] = array();\r\n\r\n$data['stores'][] = array(\r\n\t'store_id' => 0,\r\n\t'name'     => $this->language->get('text_default'),\r\n\t'href'     => ($this->request->server['HTTPS'] ? HTTPS_CATALOG : HTTP_CATALOG)\r\n);\r\n\r\n$results = $this->model_setting_store->getStores();\r\n\r\nforeach ($results as $result) {\r\n\t$data['stores'][] = array(\r\n\t\t'store_id' => $result['store_id'],\r\n\t\t'name'     => $result['name'],\r\n\t\t'href'     => ($this->request->server['HTTPS'] ? $result['ssl'] : $result['url'])\r\n\t);\r\n}\r\n```\r\n\r\nin order info:\r\n\r\n```\r\nif ($this->request->server['HTTPS']) {\r\n\t$data['store_url'] = str_replace('http://', 'https://', $order_info['store_url']);\r\n} else {\r\n\t$data['store_url'] = $order_info['store_url'];\r\n}\r\n```\r\n\r\nAnyone else have this problem?"},"comment":{"url":"https://api.github.com/repos/opencart/opencart/issues/comments/169262303","html_url":"https://github.com/opencart/opencart/issues/3536#issuecomment-169262303","issue_url":"https://api.github.com/repos/opencart/opencart/issues/3536","id":169262303,"user":{"login":"danielkerr","id":5079756,"avatar_url":"https://avatars.githubusercontent.com/u/5079756?v=3","gravatar_id":"","url":"https://api.github.com/users/danielkerr","html_url":"https://github.com/danielkerr","followers_url":"https://api.github.com/users/danielkerr/followers","following_url":"https://api.github.com/users/danielkerr/following{/other_user}","gists_url":"https://api.github.com/users/danielkerr/gists{/gist_id}","starred_url":"https://api.github.com/users/danielkerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielkerr/subscriptions","organizations_url":"https://api.github.com/users/danielkerr/orgs","repos_url":"https://api.github.com/users/danielkerr/repos","events_url":"https://api.github.com/users/danielkerr/events{/privacy}","received_events_url":"https://api.github.com/users/danielkerr/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T08:03:57Z","updated_at":"2016-01-06T08:03:57Z","body":"ok should be fixed with the latest commit. if not open another issue."}}