The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-22-2014, 08:26 AM
Luminette Lucimed's Avatar
Luminette Lucimed Luminette Lucimed is offline
 
Join Date: Jul 2012
Posts: 7
Default

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.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
api, cart, javascript, open, show

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:06 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.