
05-22-2014, 08:26 AM
|
 |
Paid Member
|
|
Join Date: Jul 2012
Posts: 7
|
|
I would like to redesign the "add to cart" button so I created a custom button :
Code:
<a class="btn btn-large add-to-cart" data-single-product-id="36382049">Ajouter au panier</a>
with such method :
Code:
$('.add-to-cart').click(function() {
var id_product = $(this).data('single-product-id');
Ecwid.Cart.addProduct(id_product);
});
My problem is that I would like to show the shopping cart after product addition. I know that it's possible to define a callback method but can't find the method to call to open the cart.
Can you help ?
Nobody ?
Last edited by Liza; 05-23-2014 at 06:46 AM.
|