- 23 Nov 2021, 23:51
#90076
Olá
Preciso de ajuda, ao add algum produto gostaria que abrisse o carrinho, mas não que redirecionasse para o carrinho e sim abrisse o carrinho do menu principal, utilizo um tema basicamente continua igual ao tema original, mas segue abaixo o trecho do carrinho
O que tentei é dar atribuir uma instrução dando show() nos elementos, mas sem sucesso.
Obrigado
Preciso de ajuda, ao add algum produto gostaria que abrisse o carrinho, mas não que redirecionasse para o carrinho e sim abrisse o carrinho do menu principal, utilizo um tema basicamente continua igual ao tema original, mas segue abaixo o trecho do carrinho
O que tentei é dar atribuir uma instrução dando show() nos elementos, mas sem sucesso.
Obrigado
Código: Selecionar todos
<div class="header-cart">
<div id="cart" class="btn-group btn-block">
<button type="button" data-toggle="dropdown" data-loading-text="Carregando..." class="btn btn-inverse btn-block btn-lg dropdown-toggle">
<span id="cart-total">
<span class="more-item">2</span>
</span>
</button>
<ul class="dropdown-menu pull-right cart-menu">
<li>
<table class="table table-striped">
<tr>
<td class="text-center">
<a href="https://levenstore.com.br/index.php?route=product/product&product_id=865">
<img src="https://levenstore.com.br/image/cache/catalog/TULUM1/CAROL%20(11)-55x70.jpg" alt=" SHORTS SAIA LIMA CAROL" title=" SHORTS SAIA LIMA CAROL" class="img-thumbnail" />
</a>
</td>
<td class="text-left"><a href="https://levenstore.com.br/index.php?route=product/product&product_id=865"> SHORTS SAIA LIMA CAROL</a>
<br />
- <small>TAMANHOS M</small>
</td>
<td class="text-right">x 1</td>
<td class="text-right">R$165,90</td>
<td class="text-center"><button type="button" onclick="cart.remove('659');" title="Remover" class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button></td>
</tr>
<tr>
<td class="text-center">
<a href="https://levenstore.com.br/index.php?route=product/product&product_id=882">
<img src="https://levenstore.com.br/image/cache/catalog/TULUM1/ISA%20(5)-55x70.jpg" alt="CALÇA CORAL ISA " title="CALÇA CORAL ISA " class="img-thumbnail" />
</a>
</td>
<td class="text-left"><a href="https://levenstore.com.br/index.php?route=product/product&product_id=882">CALÇA CORAL ISA </a>
<br />
- <small>TAMANHOS M</small>
</td>
<td class="text-right">x 1</td>
<td class="text-right">R$219,90</td>
<td class="text-center"><button type="button" onclick="cart.remove('656');" title="Remover" class="btn btn-danger btn-xs"><i class="fa fa-times"></i></button></td>
</tr>
</table>
</li>
<li>
<div>
<table class="table table-bordered">
<tr>
<td class="text-right"><strong>Sub-total</strong></td>
<td class="text-right">R$385,80</td>
</tr>
<tr>
<td class="text-right"><strong>Total</strong></td>
<td class="text-right">R$385,80</td>
</tr>
</table>
<div class="text-right button-container"><a class="addtocart" href="https://levenstore.com.br/index.php?route=checkout/cart"><strong>Exibir carrinho</strong></a> <a href="https://levenstore.com.br/index.php?route=checkout/checkout" class="checkout"><strong>Finalizar pedido</strong></a></div>
</div>
</li>
</ul>