Index: branches/1.0.x/elements/content_boxes/special_deals.elm.tpl =================================================================== diff -u -N -r14772 -r14793 --- branches/1.0.x/elements/content_boxes/special_deals.elm.tpl (.../special_deals.elm.tpl) (revision 14772) +++ branches/1.0.x/elements/content_boxes/special_deals.elm.tpl (.../special_deals.elm.tpl) (revision 14793) @@ -9,7 +9,7 @@

-

Add to Cart

+

Add to Cart

Index: branches/1.0.x/products/details.tpl =================================================================== diff -u -N -r14781 -r14793 --- branches/1.0.x/products/details.tpl (.../details.tpl) (revision 14781) +++ branches/1.0.x/products/details.tpl (.../details.tpl) (revision 14793) @@ -14,7 +14,7 @@
- Add to Cart + Add to Cart
@@ -112,8 +112,8 @@

-

Qty.  

-

Add to Cart

+

Qty.  

+

Add to Cart

Availability: In Stock

Index: branches/1.0.x/elements/header.elm.tpl =================================================================== diff -u -N -r14772 -r14793 --- branches/1.0.x/elements/header.elm.tpl (.../header.elm.tpl) (revision 14772) +++ branches/1.0.x/elements/header.elm.tpl (.../header.elm.tpl) (revision 14793) @@ -62,19 +62,9 @@ -
+ Index: branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl =================================================================== diff -u -N -r14770 -r14793 --- branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl (.../recently_viewed.elm.tpl) (revision 14770) +++ branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl (.../recently_viewed.elm.tpl) (revision 14793) @@ -9,7 +9,7 @@

-

Add to Cart

+

Add to Cart

Index: branches/1.0.x/inc/js/jquery.scripts.js =================================================================== diff -u -N -r14770 -r14793 --- branches/1.0.x/inc/js/jquery.scripts.js (.../jquery.scripts.js) (revision 14770) +++ branches/1.0.x/inc/js/jquery.scripts.js (.../jquery.scripts.js) (revision 14793) @@ -95,6 +95,46 @@ return false; } ); + + + $('.addtocart, .button-addtocart').click( + function () { + var $me = $(this), + $qty = $me.attr('qty_id') !== undefined ? parseInt($('#' + $me.attr('qty_id')).val()) : 1; + + + if ( $me.hasClass('addedtocart') ) { + // disabled button + return false; + } + + if ( isNaN($qty) ) { + $qty = 1; + } + + var $bubble = $('.basketStatus'), + $timer_id = $bubble.data('hide_timer'); + + clearTimeout($timer_id); + + $.get( + $me.attr('href') + '&qty=' + $qty, + function ($bubble_content) { + $('.basketContent', $bubble).html( $bubble_content.replace(/#QTY#/g, $qty) ); + $bubble.stop(true, true).fadeIn(); + + var $timer = setTimeout(function(){ $bubble.fadeOut('slow'); }, 2000); + $bubble.data('hide_timer', $timer); + + if ( $me.hasClass('addtocart') ) { + $me.removeClass('addtocart').addClass('addedtocart').html('Added to Cart'); + } + } + ); + + return false; + } + ); }); new DBlocks(); \ No newline at end of file Index: branches/1.0.x/elements/content_boxes/new_products.elm.tpl =================================================================== diff -u -N -r14786 -r14793 --- branches/1.0.x/elements/content_boxes/new_products.elm.tpl (.../new_products.elm.tpl) (revision 14786) +++ branches/1.0.x/elements/content_boxes/new_products.elm.tpl (.../new_products.elm.tpl) (revision 14793) @@ -9,7 +9,7 @@

-

Add to Cart

+

Add to Cart

Index: branches/1.0.x/inc/details.css =================================================================== diff -u -N -r14708 -r14793 --- branches/1.0.x/inc/details.css (.../details.css) (revision 14708) +++ branches/1.0.x/inc/details.css (.../details.css) (revision 14793) @@ -204,6 +204,11 @@ padding: 7px 0 7px 30px; } +.product .description .order-block .addedtocart { + color: #3D901F; + font-size: 1.154em; +} + /*** Tabs ***/ .ui-tabs .ui-tabs-nav { padding: 0; Index: branches/1.0.x/elements/ajax/cart_bubble.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/ajax/cart_bubble.tpl (revision 0) +++ branches/1.0.x/elements/ajax/cart_bubble.tpl (revision 14793) @@ -0,0 +1,19 @@ + +

Added to cart:

+
+ + +
+
+

#QTY# x

+

+
+
+ + \ No newline at end of file Index: branches/1.0.x/elements/product_elements.elm.tpl =================================================================== diff -u -N -r14786 -r14793 --- branches/1.0.x/elements/product_elements.elm.tpl (.../product_elements.elm.tpl) (revision 14786) +++ branches/1.0.x/elements/product_elements.elm.tpl (.../product_elements.elm.tpl) (revision 14793) @@ -30,7 +30,7 @@

-

Add to Cart

+

Add to Cart

@@ -42,7 +42,7 @@

-

Add to Cart

+

Add to Cart

\ No newline at end of file Index: branches/1.0.x/elements/ajax/.smsignore =================================================================== diff -u -N --- branches/1.0.x/elements/ajax/.smsignore (revision 0) +++ branches/1.0.x/elements/ajax/.smsignore (revision 14793) @@ -0,0 +1 @@ +.*\.tpl \ No newline at end of file