Página 1 de 1
Aparecer total de peso dos produtos no carrinho(resolvido)
Enviado: 08 Jan 2016, 18:08
por fearozi
Minha versão é 2101 theme Media Center.
No carrinho no site, ele carrega todos os produtos perfeitamente, mas não da pra visualizar o peso do carrinho, como o padrão.
http://themenis.com/opencart/mediacente ... ommon/home
podem perceber no link acima.
Se tiverem soluções. Aguardo.
Obrigado
Re: Aparecer total de peso dos produtos no carrinho
Enviado: 08 Jan 2016, 18:45
por leandrorppo
Pode configurar no painel de administrativo da loja:
Configurações->Loja->Editar->Aba Opções->Exibir peso no carrinho?-> SIM

Re: Aparecer total de peso dos produtos no carrinho
Enviado: 08 Jan 2016, 19:40
por fearozi
Já está.
Pode testar no link que enviei acima, o mesmo adiciona os produtos e não exibe o valor total do peso no carrinho.
Re: Aparecer total de peso dos produtos no carrinho
Enviado: 08 Jan 2016, 19:45
por leandrorppo
Verifique no arquivo: catalog\view\theme\SEUTEMA\template\checkout\cart.tpl
Se tem essas linhas:
<?php if ($weight) { ?>
(<?php echo $weight; ?>)
<?php } ?>
Caso não tenha insira no arquivo e teste, pode colocar abaixo de:
<?php echo $heading_title; ?>
Re: Aparecer total de peso dos produtos no carrinho
Enviado: 08 Jan 2016, 19:50
por fearozi
Não tem...
Segue o meu arquivo cart.tpl
<?php echo $header;
$theme_options = $this->registry->get('theme_options');
$config = $this->registry->get('config');
include('catalog/view/theme/' . $config->get('config_template') . '/template/new_elements/wrapper_top.tpl'); ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div class="table-responsive cart-info">
<table class="table table-bordered">
<thead>
<tr>
<td class="text-center"><?php echo $column_image; ?></td>
<td class="text-center hidden-xs"><?php echo $column_name; ?></td>
<td class="text-center hidden-xs"><?php echo $column_model; ?></td>
<td class="text-center"><?php echo $column_quantity; ?></td>
<td class="text-right hidden-xs"><?php echo $column_price; ?></td>
<td class="text-right"><?php echo $column_total; ?></td>
</tr>
</thead>
<tbody>
<?php foreach ($products as $product) { ?>
<tr>
<td class="text-center"><?php if ($product['thumb']) { ?>
<a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-thumbnail" /></a>
<?php } ?>
<div class="visible-xs"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?><div>
</td>
<td class="text-center hidden-xs"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
<?php if (!$product['stock']) { ?>
<span class="text-danger">***</span>
<?php } ?>
<?php if ($product['option']) { ?>
<?php foreach ($product['option'] as $option) { ?>
<br />
<small><?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
<?php } ?>
<?php } ?>
<?php if ($product['reward']) { ?>
<br />
<small><?php echo $product['reward']; ?></small>
<?php } ?>
<?php if ($product['recurring']) { ?>
<br />
<span class="label label-info"><?php echo $text_recurring_item; ?></span> <small><?php echo $product['recurring']; ?></small>
<?php } ?></td>
<td class="text-center hidden-xs"><?php echo $product['model']; ?></td>
<td class="text-center">
<input type="text" name="quantity[<?php echo $product['cart_id']; ?>]" value="<?php echo $product['quantity']; ?>" size="1" />
<input type="image" src="catalog/view/theme/<?php echo $config->get( 'config_template' ); ?>/img/update.png" alt="<?php echo $button_update; ?>" title="<?php echo $button_update; ?>" />
<a onclick="cart.remove('<?php echo $product['cart_id']; ?>');"><img src="catalog/view/theme/<?php echo $config->get( 'config_template' ); ?>/img/remove.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" /></a>
</td>
<td class="text-right hidden-xs"><?php echo $product['price']; ?></td>
<td class="text-right"><?php echo $product['total']; ?></td>
</tr>
<?php } ?>
<?php foreach ($vouchers as $vouchers) { ?>
<tr>
<td></td>
<td class="text-center hidden-xs"><?php echo $vouchers['description']; ?></td>
<td class="text-center hidden-xs"></td>
<td class="text-center">
<input type="text" name="" value="1" size="1" disabled="disabled" />
<a onclick="voucher.remove('<?php echo $vouchers['key']; ?>');"><img src="catalog/view/theme/<?php echo $config->get( 'config_template' ); ?>/img/remove.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" /></a>
</td>
<td class="text-right hidden-xs"><?php echo $vouchers['amount']; ?></td>
<td class="text-right"><?php echo $vouchers['amount']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</form>
<?php if ($coupon || $voucher || $reward || $shipping) { ?>
<h2><?php echo $text_next; ?></h2>
<p style="padding-bottom: 10px"><?php echo $text_next_choice; ?></p>
<div class="panel-group" id="accordion"><?php echo $coupon; ?><?php echo $voucher; ?><?php echo $reward; ?><?php echo $shipping; ?></div>
<?php } ?>
<div class="cart-total">
<table>
<?php foreach ($totals as $total) { ?>
<tr>
<td class="text-right"><strong><?php echo $total['title']; ?>:</strong></td>
<td class="text-right"><?php echo $total['text']; ?></td>
</tr>
<?php } ?>
</table>
</div>
<div class="buttons">
<div class="pull-left"><a href="<?php echo $continue; ?>" class="btn btn-default"><?php echo $button_shopping; ?></a></div>
<div class="pull-right"><a href="<?php echo $checkout; ?>" class="btn btn-primary"><?php echo $button_checkout; ?></a></div>
</div>
<?php include('catalog/view/theme/' . $config->get('config_template') . '/template/new_elements/wrapper_bottom.tpl'); ?>
<?php echo $footer; ?>
Re: Aparecer total de peso dos produtos no carrinho
Enviado: 08 Jan 2016, 19:53
por leandrorppo
Teste colocar abaixo dessa linha:
include('catalog/view/theme/' . $config->get('config_template') . '/template/new_elements/wrapper_top.tpl'); ?>
Vai ficar assim:
include('catalog/view/theme/' . $config->get('config_template') . '/template/new_elements/wrapper_top.tpl'); ?>
<?php if ($weight) { ?>
(<?php echo $weight; ?>)
<?php } ?>
Re: Aparecer total de peso dos produtos no carrinho
Enviado: 08 Jan 2016, 19:56
por fearozi
resolveu, só vou ajustar no local certo, obrigado.
Re: Aparecer total de peso dos produtos no carrinho(resolvid
Enviado: 08 Jan 2016, 20:47
por leandrorppo
De nada, bom ter resolvido.
Se precisar de módulos ou extensões:
http://www.opencart.com/index.php?route ... eandrorppo