Index: branches/1.0.x/elements/ajax/order_details.tpl =================================================================== diff -u -N -r14830 -r15019 --- branches/1.0.x/elements/ajax/order_details.tpl (.../order_details.tpl) (revision 14830) +++ branches/1.0.x/elements/ajax/order_details.tpl (.../order_details.tpl) (revision 15019) @@ -1,8 +1,9 @@ + - + rowspan="2"> @@ -18,6 +19,18 @@ + + + + + + + + + + + +
Index: branches/1.0.x/elements/content_boxes/special_deals.elm.tpl =================================================================== diff -u -N -r14793 -r15019 --- branches/1.0.x/elements/content_boxes/special_deals.elm.tpl (.../special_deals.elm.tpl) (revision 14793) +++ branches/1.0.x/elements/content_boxes/special_deals.elm.tpl (.../special_deals.elm.tpl) (revision 15019) @@ -9,7 +9,15 @@

-

Add to Cart

+

+ + + Click to See + + Add to Cart + + +

Index: branches/1.0.x/products/details.tpl =================================================================== diff -u -N -r14909 -r15019 --- branches/1.0.x/products/details.tpl (.../details.tpl) (revision 14909) +++ branches/1.0.x/products/details.tpl (.../details.tpl) (revision 15019) @@ -12,11 +12,29 @@ -
-
- Add to Cart -
-
+ + +
+ +
+ + +
+
@@ -95,36 +113,20 @@
-
-
- + + + +
+

+

-
- +
+

Qty.  

+

Add to Cart

+

Availability: In StockNot In Stock

-
-
+
-
-

-

-
-
-

Qty.  

-

Add to Cart

-

Availability: In Stock

-
Index: branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl =================================================================== diff -u -N -r14906 -r15019 --- branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl (.../recently_viewed.elm.tpl) (revision 14906) +++ branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl (.../recently_viewed.elm.tpl) (revision 15019) @@ -9,7 +9,15 @@

-

Add to Cart

+

+ + + Click to See + + Add to Cart + + +

Index: branches/1.0.x/inc/js/jquery.scripts.js =================================================================== diff -u -N -r15015 -r15019 --- branches/1.0.x/inc/js/jquery.scripts.js (.../jquery.scripts.js) (revision 15015) +++ branches/1.0.x/inc/js/jquery.scripts.js (.../jquery.scripts.js) (revision 15019) @@ -234,36 +234,27 @@ function add_to_cart_handler() { var $me = $(this), - $qty = $me.attr('qty_id') !== undefined ? parseInt($('#' + $me.attr('qty_id')).val()) : 1; + $qty = $me.attr('qty_id') !== undefined ? get_cart_qty('#' + $me.attr('qty_id')) : 1, + $url = $me.attr('href'); + if ( $url.indexOf('bubble') == -1 ) { + // proceed with regular redirect + return true; + } if ( $me.hasClass('addedtocart') ) { // disabled button return false; } - if ( isNaN($qty) ) { - $qty = 1; - } + var $timer_id = $('.basketStatus').data('hide_timer'); - var $bubble = $('.basketStatus'), - $timer_id = $bubble.data('hide_timer'); - clearTimeout($timer_id); $.get( - $me.attr('href') + '&qty=' + $qty, + $url + '&qty=' + $qty, function ($bubble_content) { - $('.basketContent', $bubble).html( $bubble_content.replace(/#QTY#/g, $qty) ); - $bubble - .stop(true, true) - .fadeIn( - 'slow', - function () { - var $timer = setTimeout(function(){ $bubble.fadeOut('slow'); }, 2000); - $bubble.data('hide_timer', $timer); - } - ); + display_cart_bubble($bubble_content, $qty); if ( $me.hasClass('addtocart') ) { $me.removeClass('addtocart').addClass('addedtocart').html('Added to Cart'); @@ -274,6 +265,31 @@ return false; } +function get_cart_qty ($qty_selector) { + var $ret = parseInt( $($qty_selector).val() ); + + if ( isNaN($ret) ) { + $ret = 1; + } + + return $ret; +} + +function display_cart_bubble ($bubble_content, $qty) { + var $bubble = $('.basketStatus'); + + $('.basketContent', $bubble).html( $bubble_content.replace(/#QTY#/g, $qty) ); + $bubble + .stop(true, true) + .fadeIn( + 'slow', + function () { + var $timer = setTimeout(function(){ $bubble.fadeOut('slow'); }, 2000); + $bubble.data('hide_timer', $timer); + } + ); +} + /* === Startup === */ $(document).ready( function() { @@ -288,6 +304,6 @@ } ); - $('.addtocart, .button-addtocart').click(add_to_cart_handler); + $('.addtocart').click(add_to_cart_handler); } ); \ No newline at end of file Index: branches/1.0.x/elements/content_boxes/new_products.elm.tpl =================================================================== diff -u -N -r14885 -r15019 --- branches/1.0.x/elements/content_boxes/new_products.elm.tpl (.../new_products.elm.tpl) (revision 14885) +++ branches/1.0.x/elements/content_boxes/new_products.elm.tpl (.../new_products.elm.tpl) (revision 15019) @@ -9,7 +9,15 @@

-

Add to Cart

+

+ + + Click to See + + Add to Cart + + +

Index: branches/1.0.x/products/compare.tpl =================================================================== diff -u -N -r14919 -r15019 --- branches/1.0.x/products/compare.tpl (.../compare.tpl) (revision 14919) +++ branches/1.0.x/products/compare.tpl (.../compare.tpl) (revision 15019) @@ -30,7 +30,15 @@

-

Add to Cart

+

+ + + Click to See + + Add to Cart + + +

Index: branches/1.0.x/elements/options.elm.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/options.elm.tpl (revision 0) +++ branches/1.0.x/elements/options.elm.tpl (revision 15019) @@ -0,0 +1,113 @@ + + + : + , + + + + + + + + +    + + Add to Cart + + + + + + + + + + + name="options[][][]" + id="options[][]_" + value="" + /> + + + + + + + name="options[][]" + id="options[][]_" + value="" + /> + + + + + + + + * : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + : + + : + ( ) + +
+
+ + + ( ) + , + + + + + : + + : +
+
+ + + + , + \ No newline at end of file Index: branches/1.0.x/cart.tpl =================================================================== diff -u -N -r14825 -r15019 --- branches/1.0.x/cart.tpl (.../cart.tpl) (revision 14825) +++ branches/1.0.x/cart.tpl (.../cart.tpl) (revision 15019) @@ -12,6 +12,7 @@ +
  • Shopping Cart
  • @@ -108,7 +109,17 @@ -
    + + + + + + + + Edit Options + + + Index: branches/1.0.x/elements/ajax/product_options.tpl =================================================================== diff -u -N --- branches/1.0.x/elements/ajax/product_options.tpl (revision 0) +++ branches/1.0.x/elements/ajax/product_options.tpl (revision 15019) @@ -0,0 +1,166 @@ + + +
    + + + + + + + + + + + +
    + +
    + +

    +
    +
    + + + + + + + + + +
    Options CombinationPrice 
    +
    + +
    +

    +

    +
    + +
    +

    Qty.  

    +

    Availability: In StockNot In Stock

    +
    + +
    + +
    + +

    +
    +
    + + + +
    +
    + +
    +

    +

    +
    + +
    +

    Qty.  

    +

    + + Update Options + + + Added to Cart + + Add to Cart + + +

    +

    Availability: In StockNot In Stock

    +
    +
    +
    + + + + \ No newline at end of file Index: branches/1.0.x/elements/product_elements.elm.tpl =================================================================== diff -u -N -r14922 -r15019 --- branches/1.0.x/elements/product_elements.elm.tpl (.../product_elements.elm.tpl) (revision 14922) +++ branches/1.0.x/elements/product_elements.elm.tpl (.../product_elements.elm.tpl) (revision 15019) @@ -30,7 +30,15 @@
    @@ -42,7 +50,15 @@

    -

    Add to Cart

    +

    + + + Click to See + + Add to Cart + + +

    Index: branches/1.0.x/receipt.tpl =================================================================== diff -u -N -r14829 -r15019 --- branches/1.0.x/receipt.tpl (.../receipt.tpl) (revision 14829) +++ branches/1.0.x/receipt.tpl (.../receipt.tpl) (revision 15019) @@ -15,7 +15,7 @@ - + rowspan="2"
    > @@ -31,6 +31,18 @@ + + + + + + + + + + + + @@ -170,6 +182,7 @@ +
    • Shopping Cart
    • Index: branches/1.0.x/inc/js/cart_manager.js =================================================================== diff -u -N -r14832 -r15019 --- branches/1.0.x/inc/js/cart_manager.js (.../cart_manager.js) (revision 14832) +++ branches/1.0.x/inc/js/cart_manager.js (.../cart_manager.js) (revision 15019) @@ -165,10 +165,15 @@ // delete rows $($delete_rows).each( function () { - var $row = $me.getRowByIndex(this); + var $row = $me.getRowByIndex(this), + $options_row = $row.next(); // $row.next('tr.separator').remove(); $row.remove(); + + if ( $('td.options-td', $options_row).length == 1 ) { + $options_row.remove(); + } } );