{"id":770,"date":"2013-10-21T18:48:56","date_gmt":"2013-10-21T18:48:56","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=770"},"modified":"2013-12-30T22:33:18","modified_gmt":"2013-12-30T22:33:18","slug":"undefined-variable-order_id-in-public_htmlcatalogcontrolleraccountorder-php-on-line-149warning","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=770","title":{"rendered":"Undefined variable: order_id in public_html\/catalog\/controller\/account\/order.php on line 149Warning"},"content":{"rendered":"<p>You may not be aware of this issue until a customer notifies you, as it is only when they click on their order confirmation link sent to them by email that it happens. Opencart can display this this error when customers click on their email confirmation link to rectify it simply do the following:<\/p>\n<p>Log in via FTP and edit<\/p>\n<p><code>\/catalog\/controller\/account\/order.php<\/code><\/p>\n<p>near line 149, just after the following code<\/p>\n<p><code>public function info() {<br \/>\nif (!$this-&gt;customer-&gt;isLogged()) {<\/code><\/p>\n<p>add the following line:<\/p>\n<p><code>$order_id = $this-&gt;request-&gt;get['order_id'];<\/code><\/p>\n<p>The text should now look like this:<\/p>\n<p><code>public function info() {<br \/>\nif (!$this-&gt;customer-&gt;isLogged()) {<br \/>\n$order_id = $this-&gt;request-&gt;get['order_id'];<\/code><\/p>\n<p>Re upload the file to your server and job done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may not be aware of this issue until a customer notifies you, as it is only when they click on their order confirmation link sent to them by email that it happens. Opencart can display this this error when customers click on their email confirmation link to rectify it simply do the following: Log [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[185,12],"tags":[],"class_list":["post-770","post","type-post","status-publish","format-standard","hentry","category-open-cart","category-webhosting"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=770"}],"version-history":[{"count":4,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/770\/revisions"}],"predecessor-version":[{"id":904,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/770\/revisions\/904"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}