{"id":78,"date":"2016-05-17T11:24:00","date_gmt":"2016-05-17T14:24:00","guid":{"rendered":"https:\/\/blog.wieczorek.com.br\/novo\/?p=78"},"modified":"2022-02-24T16:09:55","modified_gmt":"2022-02-24T19:09:55","slug":"alterando-paginas-da-loja-opencart","status":"publish","type":"post","link":"https:\/\/blog.wieczorek.com.br\/index.php\/2016\/05\/17\/alterando-paginas-da-loja-opencart\/","title":{"rendered":"Alterando p\u00e1ginas da loja OpenCart"},"content":{"rendered":"\n<p>Ol\u00e1 pessoal. Hoje vou mostrar a voc\u00eas onde alterar as p\u00e1ginas do sistema de com\u00e9rcio eletr\u00f4nico&nbsp;<strong>OpenCart<\/strong>.<\/p>\n\n\n\n<p>Voc\u00ea poder\u00e1 alterar&nbsp;todas as p\u00e1ginas do sistema, incluindo&nbsp;os menus. E essa altera\u00e7\u00e3o \u00e9 bem simples.<\/p>\n\n\n\n<p>Para fazermos isto, basta acessar a pasta do tema e o template que deseja alterar.<\/p>\n\n\n\n<p>Como exemplo,&nbsp;vamos alterar o header da p\u00e1gina. Para isto, acessaremos&nbsp;c<em>atalog\/view\/theme\/DEFAULT\/template\/common\/header.tpl<\/em><\/p>\n\n\n\n<p>Dentro do arquivo header.tpl (fragmento de c\u00f3digo mostrado abaixo), fazemos as altera\u00e7\u00f5es que achamos necess\u00e1rias, salvamos o arquivo e voil\u00e1. A p\u00e1gina j\u00e1 ter\u00e1 a customiza\u00e7\u00e3o que pretend\u00edamos realizar.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;header id=\"header\">\r\n            &lt;?php if ($logo) { ?>\r\n                  &lt;h1 id=\"logo\">&lt;br \/>\r\n                    &lt;a href=\"&lt;?php echo $home; ?>\">&lt;br \/>\r\n                        &lt;img src=\"&lt;?php echo $logo; ? \/>\" title=\"&lt;?php echo $name; ?>\" alt=\"&lt;?php echo $name; ?>\" \/>&lt;br \/>\r\n                    &lt;\/a>&lt;br \/>\r\n                &lt;\/h1>\r\n            &lt;?php } ?>\r\n          &lt;?php echo $language; ?>\r\n            &lt;?php echo $currency; ?>\r\n          &lt;?php echo $cart; ?>\r\n              &lt;section id=\"search\">\r\n                &lt;div class=\"button-search\">&lt;\/div>\r\n                &lt;?php if ($filter_name) { ?>\r\n                    &lt;input type=\"text\" name=\"filter_name\" value=\"&lt;?php echo $filter_name; ? \/>\" \/>\r\n                &lt;?php } else { ?>\r\n                    &lt;input type=\"text\" name=\"filter_name\" value=\"&lt;?php echo $text_search; ? \/>\" \/>\r\n                &lt;?php } ?>\r\n              &lt;\/section>\r\n              &lt;section id=\"welcome\">\r\n                &lt;?php if (!$logged) { ?>\r\n                    &lt;?php echo $text_welcome; ?>\r\n                &lt;?php } else { ?>\r\n                    &lt;?php echo $text_logged; ?>\r\n                &lt;?php } ?>\r\n              &lt;\/section>\r\n              &lt;nav class=\"links\">\r\n                &lt;a href=\"&lt;?php echo $home; ?>\">&lt;?php echo $text_home; ?>&lt;\/a>\r\n                &lt;a href=\"&lt;?php echo $wishlist; ?>\" id=\"wishlist_total\">&lt;?php echo $text_wishlist; ?>&lt;\/a>\r\n                &lt;a href=\"&lt;?php echo $account; ?>\">&lt;?php echo $text_account; ?>&lt;\/a>\r\n                &lt;a href=\"&lt;?php echo $checkout; ?>\">&lt;?php echo $text_checkout; ?>&lt;\/a>\r\n            &lt;\/nav>\r\n&lt;\/header><\/code><\/pre>\n\n\n\n<p>* DEFAULT \u00e9 o tema que nossa loja utiliza.<\/p>\n\n\n\n<p>* .tpl \u00e9 a extens\u00e3o para arquivos de template (utilizados por alguns softwares, como o&nbsp;OpenCart)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1 pessoal. Hoje vou mostrar a voc\u00eas onde alterar as p\u00e1ginas do sistema de com\u00e9rcio eletr\u00f4nico&nbsp;OpenCart. Voc\u00ea poder\u00e1 alterar&nbsp;todas as p\u00e1ginas do sistema, incluindo&nbsp;os menus. E essa altera\u00e7\u00e3o \u00e9 bem simples. Para fazermos isto, basta acessar a pasta do tema e o template que deseja alterar. Como exemplo,&nbsp;vamos alterar o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,68,69],"tags":[71,72,70,73,75,74],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-internet","category-php","category-software-livre","tag-comercio-eletronico","tag-configuracao","tag-opencart","tag-php","tag-software-livre","tag-template"],"_links":{"self":[{"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":2,"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/posts\/78\/revisions\/266"}],"wp:attachment":[{"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wieczorek.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}