Page 1 of 1

Add to cart pop out message

Posted: Mon Oct 01, 2012 4:54 pm
by ferhatasif
Hi,

I want in my website that when clicking on add to cart the shopping cart should automatically pop out showing all the details,

Thanks & Regards
Ferhat Raj

Re: Add to cart pop out message

Posted: Wed Oct 03, 2012 3:54 am
by Avvici
This is pretty easy. Just open catalog/view/theme/your_theme/template/product/product.tpl and find this code:

Code: Select all

if (json['success']) {
                $('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>'); 
Replace with this:

Code: Select all

if (json['success']) {
                $('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
                    $('#cart').addClass('active');
$('#cart').load('index.php?route=module/cart #cart > *'); 

Re: Add to cart pop out message

Posted: Fri Oct 12, 2012 3:01 am
by kuleszko
No, sorry its not working :(