Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Por favor, poste aqui todas as dúvidas que você está tendo sobre a instalação, atualização ou configuração do OpenCart v2.x
Por klawber
#73435
Boa Tarde Pessoal.

Talvez alguém já tenha encontrado algum problema similar e possa me ajudar:

Eu traduzi o Opencart e instalei um template depois, porém duas opções ficaram sem traduzir, "Add to Cart" e "My Cart", somente na home e no header.

Pesquisei por todos os arquivos e não encontrei onde resolver isso, alguém saberia como eu posso alterar estas duas opções?

Se alguém quiser olhar o site é wteletro.com.br.

Agradeço muito se alguém me der uma luz!
Por rtchost
#73436
Bom depende muito do Tema...

Cada um traduz de uma forma, alguns a tradução é no arquivo de tradução, outros fica no Banco de dados e outros acabam passando batido e esquecendo de criar uma forma de disponibilizar uma forma de traduzir...

Ai já vi temas que usam as três formas kkkk tem que sair garimpando mesmo.

Até o momento como vc traduziu os demais textos?
#73439
klawber escreveu:Boa Tarde Pessoal.

Talvez alguém já tenha encontrado algum problema similar e possa me ajudar:

Eu traduzi o Opencart e instalei um template depois, porém duas opções ficaram sem traduzir, "Add to Cart" e "My Cart", somente na home e no header.

Pesquisei por todos os arquivos e não encontrei onde resolver isso, alguém saberia como eu posso alterar estas duas opções?

Se alguém quiser olhar o site é wteletro.com.br.

Agradeço muito se alguém me der uma luz!
Pode me passar o arquivo cart.php que está localizado aqui:
catalog\language\pt-br\common\cart.php
E também poderia passar o arquivo header.php:
catalog\language\pt-br\common\header.php
Por klawber
#73441
No cart.php:

<?php
// Text
$_['text_items'] = '%s - %s';
$_['text_empty'] = 'Seu carrinho está vazio!';
$_['text_cart'] = 'Exibir carrinho';
$_['text_checkout'] = 'Finalizar pedido';
$_['text_recurring'] = 'Assinatura';

No Header.php:
<?php
// Text
$_['text_home'] = 'Principal';
$_['text_wishlist'] = 'Lista de desejos (%s)';
$_['text_shopping_cart'] = 'Carrinho de compras';
$_['text_category'] = 'Departamentos';
$_['text_account'] = 'Minha conta';
$_['text_register'] = 'Cadastre-se';
$_['text_login'] = 'Acessar';
$_['text_order'] = 'Histórico de pedidos';
$_['text_transaction'] = 'Transações';
$_['text_download'] = 'Downloads';
$_['text_logout'] = 'Sair';
$_['text_checkout'] = 'Finalizar pedido';
$_['text_search'] = 'Busca';
$_['text_all'] = 'Exibir';

Eu já vasculhei tudo e não consegui encontrar. Tentei alterar no próprio arquivo en-gb.php o texto add to cart mas não resolveu.
#73442
klawber escreveu:No cart.php:

<?php
// Text
$_['text_items'] = '%s - %s';
$_['text_empty'] = 'Seu carrinho está vazio!';
$_['text_cart'] = 'Exibir carrinho';
$_['text_checkout'] = 'Finalizar pedido';
$_['text_recurring'] = 'Assinatura';

No Header.php:
<?php
// Text
$_['text_home'] = 'Principal';
$_['text_wishlist'] = 'Lista de desejos (%s)';
$_['text_shopping_cart'] = 'Carrinho de compras';
$_['text_category'] = 'Departamentos';
$_['text_account'] = 'Minha conta';
$_['text_register'] = 'Cadastre-se';
$_['text_login'] = 'Acessar';
$_['text_order'] = 'Histórico de pedidos';
$_['text_transaction'] = 'Transações';
$_['text_download'] = 'Downloads';
$_['text_logout'] = 'Sair';
$_['text_checkout'] = 'Finalizar pedido';
$_['text_search'] = 'Busca';
$_['text_all'] = 'Exibir';

Eu já vasculhei tudo e não consegui encontrar. Tentei alterar no próprio arquivo en-gb.php o texto add to cart mas não resolveu.
Não deve ser na tradução, pode me mandar esse arquivo:
\catalog\view\theme\seutema\template\common\header.tpl
Por klawber
#73443
<?php
/******************************************************
* @package SO Theme Framework for Opencart 2.0.x
* @author http://www.magentech.com
* @license GNU General Public License
* @copyright(C) 2008-2015 Magentech.com. All rights reserved.
*******************************************************/
require_once(DIR_SYSTEM . 'soconfig/classes/soconfig.php');
if(isset($registry)){$this->soconfig = new Soconfig($registry);}
else{ include(DIR_TEMPLATE.'default/template/soconfig/not_registry.php'); exit; }
?>

<!DOCTYPE html>
<html>
<head>
<title><?php echo $title; ?></title>
<meta charset="UTF-8" />
<base href="<?php echo $base; ?>" />
<meta name="format-detection" content="telephone=no" />
<?php if($layouts){?><meta name="viewport" content="width=device-width, initial-scale=1"> <?php }?>
<?php if ($description) { ?><meta name="description" content="<?php echo $description; ?>" /><?php } ?>
<?php if ($keywords) { ?><meta name="keywords" content="<?php echo $keywords; ?>" /><?php } ?>
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->

<?php // Begin General CSS -----

if($direction=='ltr') $this->soconfig->addCss('catalog/view/javascript/bootstrap/css/bootstrap.min.css');
else if($direction=='rtl') $this->soconfig->addCss('catalog/view/javascript/soconfig/css/bootstrap/bootstrap.rtl.min.css');
else $this->soconfig->addCss('catalog/view/javascript/bootstrap/css/bootstrap.min.css');
if(!$layouts) $this->soconfig->addCss('catalog/view/javascript/soconfig/css/bootstrap/bootstrap.none.css');

$this->soconfig->addCss('catalog/view/javascript/font-awesome/css/font-awesome.min.css');

$this->soconfig->addCss('catalog/view/javascript/soconfig/css/lib.css');
$this->soconfig->addCss('catalog/view/theme/'.$theme.'/css/ie9-and-up.css');

foreach ($styles as $style) $this->soconfig->addCss($style['href']);
if(isset($cssfile_status) && $cssfile_status ) foreach ($cssfile as $file) $this->soconfig->addCss($file);

?>

<?php // Begin Themes Scripts ----
$this->soconfig->addJs('catalog/view/javascript/jquery/jquery-2.1.1.min.js');
$this->soconfig->addJs('catalog/view/javascript/bootstrap/js/bootstrap.min.js');
$this->soconfig->addJs('catalog/view/javascript/soconfig/js/libs.js');
$this->soconfig->addJs('catalog/view/javascript/soconfig/js/so.system.js');
$this->soconfig->addJs('catalog/view/theme/'.$theme.'/js/so.custom.js');
$this->soconfig->addJs('catalog/view/theme/'.$theme.'/js/common.js');
if (!isset($toppanel_status) || $toppanel_status != 0) $this->soconfig->addJs('catalog/view/javascript/soconfig/js/toppanel.js');
if (!isset($scroll_animation) || $scroll_animation != 0) $this->soconfig->addJs('catalog/view/javascript/soconfig/js/jquery.unveil.js');
if(!defined('OWL_CAROUSEL')){
$this->soconfig->addCss('catalog/view/javascript/soconfig/css/owl.carousel.css');
$this->soconfig->addJs('catalog/view/javascript/soconfig/js/owl.carousel.js');
define('OWL_CAROUSEL', 1);
}
foreach ($scripts as $script) $this->soconfig->addJs($script);
if(isset($jsfile_status) && $jsfile_status) foreach ($jsfile as $file) $this->soconfig->addJs($file);

$this->soconfig->scss_compass();
$this->soconfig->css_out();
$this->soconfig->js_out();

?>

<?php //Begin Google Fonts -----?>
<?php if (isset($url_body) && $body_status == 'google'):?> <link href='<?php echo $url_body ?>' rel='stylesheet' type='text/css'> <?php endif; ?>
<?php if (isset($menu_status) && $menu_status == 'google'):?> <link href='<?php echo $url_menu ?>' rel='stylesheet' type='text/css'> <?php endif; ?>
<?php if (isset($menu_heading) && $menu_heading == 'google'):?> <link href='<?php echo $url_heading ?>' rel='stylesheet' type='text/css'> <?php endif; ?>

<?php if (isset($selector_body)) :?>
<style type="text/css"><?php
if ($body_status =='google') echo html_entity_decode($selector_body).'{font-family:'. $family_body.'}';
else echo $selector_body.'{font-family:'. $normal_body.'}';
?>
</style>
<?php endif; ?>
<?php
if (isset($selector_menu)) :?>
<style type="text/css"><?php
if ($menu_status =='google') echo html_entity_decode($selector_menu).'{font-family:'. $family_menu.'}';
else echo $selector_menu.'{font-family:'. $normal_menu.'}';
?>
</style>
<?php endif; ?>

<?php if (isset($selector_heading)) :?>
<style type="text/css"><?php
if ($heading_status =='google') echo html_entity_decode($selector_heading).'{font-family:'. $family_heading.'}';
else echo $selector_heading.'{font-family:'. $normal_heading.'}';
?>
</style>
<?php endif; ?>
<?php // End Google Fonts ----- ?>

<?php // Begin Custom Code ----?>
<?php if(isset($cssinput_status) && $cssinput_status){?><style type="text/css"><?php echo $custom_css;?></style><?php } ?>
<?php if(isset($jsinput_status) && $jsinput_status){?><script type="text/javascript"><?php echo $custom_js;?></script><?php } ?>
<?php if(isset($general_bgcolor) || isset($contentbg) ):?>
<style type="text/css">
body {
background-color:<?php echo (!empty($general_bgcolor) ? $general_bgcolor : ''); ?>;
<?php if (isset($contentbg) && $contentbg != '' && $layoutstyle !='full') : ?>
background-image: url("image/<?php echo $contentbg; ?>");
background-repeat:<?php echo (!empty($content_bg_mode) ? $content_bg_mode : ''); ?>;
background-attachment:<?php echo (!empty($content_attachment) ? $content_attachment : ''); ?>;
background-position:top center;
<?php endif?>
}
</style>
<?php endif; ?>

<?php // End Custom Code ----- ?>

<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>

<?php foreach ($analytics as $analytic) { ?>
<?php echo $analytic; ?>
<?php } ?>

</head>

<?php
//Render a class Body
$cls_body = $class .' ';
$cls_body .= $direction.' ' ;
$cls_body .= (($layouts) ? 'res'.'':'no-res').' ';
$cls_body .='layout-'.(isset($typelayout) ? $typelayout : '0'). ' ';
if( $layoutstyle!='full' && $contentbg=='' && $pattern !='none' )$cls_body .='pattern-'. $pattern;
$cls_wrapper = 'wrapper-'.$layoutstyle.' ' ;
$cls_wrapper .= 'banners-effect-'.$type_banner;
?>
<body class="<?php echo $cls_body; ?> ">
<div id="wrapper" class="<?php echo $cls_wrapper; ?>">

<?php
//Render preloader

if (!isset($preloader) || $preloader != 0) {
$path_preloader = DIR_TEMPLATE.$theme.'/template/soconfig/preloader.php';
include($path_preloader);
}
?>

<?php
//Select Type Of Header
if(isset($typeheader)){
$header_alert = '<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> Pleases Create Position Header</div>';
switch ($typeheader) {
case "1":
$header1 = DIR_TEMPLATE.$theme.'/template/header/header1.tpl';
$header1 = DIR_TEMPLATE.$theme.'/template/header/header1.tpl';
if (file_exists($header1)) include($header1);
else echo $header_alert;
break;
case "2":
$header2 = DIR_TEMPLATE.$theme.'/template/header/header2.tpl';
if (file_exists($header2)) include($header2);
else echo $header_alert;
break;
case "3":
$header3 = DIR_TEMPLATE.$theme.'/template/header/header3.tpl';
if (file_exists($header3)) include($header3);
else echo $header_alert;
break;
case "4":
$header4 = DIR_TEMPLATE.$theme.'/template/header/header4.tpl';
if (file_exists($header4)) include($header4);
else echo $header_alert;
break;
case "5":
$header5 = DIR_TEMPLATE.$theme.'/template/header/header5.tpl';
if (file_exists($header5)) include($header5);
else echo $header_alert;
break;
case "6":
$header6 = DIR_TEMPLATE.$theme.'/template/header/header6.tpl';
if (file_exists($header6)) include($header6);
else echo $header_alert;
break;
case "7":
$header7 = DIR_TEMPLATE.$theme.'/template/header/header7.tpl';
if (file_exists($header7)) include($header7);
else echo $header_alert;
break;
case "8":
$header8 = DIR_TEMPLATE.$theme.'/template/header/header8.tpl';
if (file_exists($header8)) include($header8);
else echo $header_alert;
break;
case "9":
$header9 = DIR_TEMPLATE.$theme.'/template/header/header9.tpl';
if (file_exists($header9)) include($header9);
else echo $header_alert;
break;
}
}else{
include(DIR_TEMPLATE.$theme.'/template/header/header1.tpl');
}
?>
<div id="socialLogin"></div>
#73444
Olha seu PV/Mp!
Tem uns arquivos pra olhar ainda.

Qual desses é o seu header?
$header1 = DIR_TEMPLATE.$theme.'/template/header/header1.tpl';
$header1 = DIR_TEMPLATE.$theme.'/template/header/header1.tpl';
if (file_exists($header1)) include($header1);
else echo $header_alert;
break;
case "2":
$header2 = DIR_TEMPLATE.$theme.'/template/header/header2.tpl';
if (file_exists($header2)) include($header2);
else echo $header_alert;
break;
case "3":
$header3 = DIR_TEMPLATE.$theme.'/template/header/header3.tpl';
if (file_exists($header3)) include($header3);
else echo $header_alert;
break;
case "4":
$header4 = DIR_TEMPLATE.$theme.'/template/header/header4.tpl';
if (file_exists($header4)) include($header4);
else echo $header_alert;
break;
case "5":
$header5 = DIR_TEMPLATE.$theme.'/template/header/header5.tpl';
if (file_exists($header5)) include($header5);
else echo $header_alert;
break;
case "6":
$header6 = DIR_TEMPLATE.$theme.'/template/header/header6.tpl';
if (file_exists($header6)) include($header6);
else echo $header_alert;
break;
case "7":
$header7 = DIR_TEMPLATE.$theme.'/template/header/header7.tpl';
if (file_exists($header7)) include($header7);
else echo $header_alert;
break;
case "8":
$header8 = DIR_TEMPLATE.$theme.'/template/header/header8.tpl';
if (file_exists($header8)) include($header8);
else echo $header_alert;
break;
case "9":
$header9 = DIR_TEMPLATE.$theme.'/template/header/header9.tpl';
if (file_exists($header9)) include($header9);
else echo $header_alert;
break;
Header1.tpl
Header2.tpl
Header3.tpl
Header4.tpl
Header5.tpl
Header6.tpl
Header7.tpl
Header8.tpl
Header9.tpl qual deles vocês selecionou, pode me passar via mp/pv pro tópico não ficar grande.
extensção -> Módulos

Voltou ao normal sozinho

Night games. One night, no worries Real Women P[…]

@Manoel Vidal Poderia me ajudar com 2 coisas n[…]

Looking for a partner for an unforgettable night? […]