{"id":2267,"date":"2018-06-05T11:56:35","date_gmt":"2018-06-05T15:56:35","guid":{"rendered":"https:\/\/easy-admin.ca\/?p=2267"},"modified":"2018-06-05T11:56:35","modified_gmt":"2018-06-05T15:56:35","slug":"opencart-3-0-2-blank-contact-success-page-fix","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2018\/06\/05\/opencart-3-0-2-blank-contact-success-page-fix\/","title":{"rendered":"OpenCart 3.0.2 Blank contact success page fix!"},"content":{"rendered":"<p>in catalog\/controller\/information\/contact.php file<\/p>\n<p>find:<\/p>\n<pre><code>$this-&gt;response-&gt;redirect($this-&gt;url-&gt;link('information\/contact\/success'));<\/code><\/pre>\n<p>add <strong>above<\/strong>:<\/p>\n<pre><code>$this-&gt;session-&gt;data['success'] = true;<\/code><\/pre>\n<p>Then, find:<\/p>\n<pre><code>$data['continue'] = $this-&gt;url-&gt;link('common\/home');<\/code><\/pre>\n<p>add below:<\/p>\n<pre><code>if (!empty($this-&gt;session-&gt;data['success'])) {\r\n\t\t\t$data['text_success'] = $this-&gt;language-&gt;get('text_success');\r\n\t\t\t\r\n\t\t\tunset ($this-&gt;session-&gt;data['success']);\r\n\t\t}<\/code><\/pre>\n<p>In catalog\/view\/theme\/&lt;your_theme&gt;\/template\/common\/success.twig file<\/p>\n<p>find:<\/p>\n<pre><code>&lt;\/ul&gt;<\/code><\/pre>\n<p>add below:<\/p>\n<pre><code>{% if text_success %}\r\n  &lt;div class=\"alert alert-success alert-dismissible\"&gt;&lt;i class=\"fa fa-check-circle\"&gt;&lt;\/i&gt; {{ text_success }}&lt;\/div&gt;\r\n  {% endif %}<\/code><\/pre>\n<p>This should resolved the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>in catalog\/controller\/information\/contact.php file find: $this-&gt;response-&gt;redirect($this-&gt;url-&gt;link(&#8216;information\/contact\/success&#8217;)); add above: $this-&gt;session-&gt;data[&#8216;success&#8217;] = true; Then, find: $data[&#8216;continue&#8217;] = $this-&gt;url-&gt;link(&#8216;common\/home&#8217;); add below: if (!empty($this-&gt;session-&gt;data[&#8216;success&#8217;])) { $data[&#8216;text_success&#8217;] = $this-&gt;language-&gt;get(&#8216;text_success&#8217;); unset ($this-&gt;session-&gt;data[&#8216;success&#8217;]); } In catalog\/view\/theme\/&lt;your_theme&gt;\/template\/common\/success.twig file find: &lt;\/ul&gt; add below: {% if text_success %} &lt;div class=&#8221;alert alert-success alert-dismissible&#8221;&gt;&lt;i class=&#8221;fa fa-check-circle&#8221;&gt;&lt;\/i&gt; {{ text_success }}&lt;\/div&gt; {% endif %} This should resolved the problem.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"OpenCart 3.0.2 Blank contact success page fix! - HP Server","description":"in catalog\/controller\/information\/contact.php file find: $this-&gt;response-&gt;redirect($this-&gt;url-&gt;link('information\/contact\/success')); add above : $th"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2267","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=2267"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2267\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=2267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=2267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=2267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}