diff --git a/override/modules/blockcart/blockcart.php b/override/modules/blockcart/blockcart.php index 66e7e78b..91fc5dd2 100644 --- a/override/modules/blockcart/blockcart.php +++ b/override/modules/blockcart/blockcart.php @@ -15,6 +15,11 @@ class BlockCartOverride extends BlockCart public function hookendBody($params) { $this->assignContentVars($params); + + $category = new Category(183); + $continueLink = $this->context->link->getCategoryLink($category); + $this->smarty->append('continueLink', $continueLink); + return $this->display(__FILE__, 'blockcart_footer.tpl'); } diff --git a/themes/toutpratique/js/modules/blockcart/ajax-cart.js b/themes/toutpratique/js/modules/blockcart/ajax-cart.js index ecb30264..cfb6f86d 100644 --- a/themes/toutpratique/js/modules/blockcart/ajax-cart.js +++ b/themes/toutpratique/js/modules/blockcart/ajax-cart.js @@ -64,12 +64,17 @@ $(document).ready(function(){ $(this).closest("form").get(0).submit(); }); - $(document).on('click', '#layer_cart .cross, #layer_cart .continue, .layer_cart_overlay', function(e){ + $(document).on('click', '#layer_cart .cross, .layer_cart_overlay', function(e){ e.preventDefault(); $('.layer_cart_overlay').hide(); $('#layer_cart').removeClass('open'); }); + $(document).on('click', '#layer_cart .continue', function(e){ + e.preventDefault(); + window.location.href = $(this).data('link'); + }); + $('#columns #layer_cart, #columns .layer_cart_overlay').detach().prependTo('#columns'); $('.update-qty .qty-up').on('click', function() { diff --git a/themes/toutpratique/modules/blockcart/blockcart_footer.tpl b/themes/toutpratique/modules/blockcart/blockcart_footer.tpl index c1a86f71..0a7e83f0 100644 --- a/themes/toutpratique/modules/blockcart/blockcart_footer.tpl +++ b/themes/toutpratique/modules/blockcart/blockcart_footer.tpl @@ -32,7 +32,7 @@
- + {l s='Continue shopping' mod='blockcart'}