Fórum OpenCart Brasil

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

Suporte geral sobre problemas técnicos para OpenCart v1.x.
Por vreblin
#22324
Bom dia a todos do forum, sou novato aqui, gostaria de remover o botão comprar e o preço , vou usar o OpenCart somente para demonstrar meus produtos, se alguem pode me ajudar agradeço.
#22419
remover botão comprar

no arquivo catalog/view/theme/seu-tema/template/product/product.tpl remova a linha <a id="button-cart" class="button"><span><?php echo $button_cart; ?></span></a>

remover preço

no arquivo catalog/view/theme/seu-tema/template/product/product.tpl remova as linhas
Código: Selecionar todos
<?php if ($price) { ?>
      <div class="price"><?php echo $text_price; ?>
        <?php if (!$special) { ?>
        <?php echo $price; ?>
        <?php } else { ?>
        <span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
        <?php } ?>
        <br />
        <?php if ($tax) { ?>
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
        <?php } ?>
        <?php if ($points) { ?>
        <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span> <br />
        <?php } ?>
        <?php if ($discounts) { ?>
        <br />
        <div class="discount">
          <?php foreach ($discounts as $discount) { ?>
          <?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?><br />
          <?php } ?>
        </div>
        <?php } ?>
      </div>
      <?php } ?>

Ps.: faça isso nos arquivos:

catalog/view/theme/seu-tema/template/product/product.tpl
catalog/view/theme/seu-tema/template/product/category.tpl
catalog/view/theme/seu-tema/template/module/bestseller.tpl
catalog/view/theme/seu-tema/template/module/featured.tpl
catalog/view/theme/seu-tema/template/module/latest.tpl
catalog/view/theme/seu-tema/template/module/special.tpl


PS.: Área incorreta