Fórum OpenCart Brasil

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

Suporte para temas OpenCart v1.x.
Por thiagohsk1
#39824
o meus themas do open cart toda vez quel adiciono um thema e vejo o demo do templant fica com esse erro, como eu resolvo :(


Notice: Undefined variable: filter_name in /home/c74ebulo/public_html/catalog/view/theme/oskar/template/common/header.tpl on line 61



como eu resolvo o templants são o oskas e o nicole shop
Avatar do usuário
Por darkila
#40590
Acontece quando se usa template 1.5.4.x no opencart 1.5.5.1.

A solução é a seguinte:

Procure o arquivo catalog/view/theme/your_theme/template/common/header.tpl

Abra o arquivo.
Procure por
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
<?php } ?>

Troque por
<input type="text" name="search" placeholder="<?php echo $text_search; ?>" value="<?php echo $search; ?>" />
Por tofoli
#51697
Pessoal estou com um problema e não consigo resolver. Eu instalei um tema e aprece o seguinte erro no carrinho:
Notice: Undefined index: recurring in /home/moriajoi/public_html/catalog/view/theme/stowear/template/checkout/cart.tpl on line 45
É possível resolver isso ou teria que colocar o cart. tpl do opencart mesmo? Obrigado.