Redirect bouton link to category 183
This commit is contained in:
parent
d2a81d02b8
commit
ffd167a1c5
@ -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');
|
||||
}
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<div class="layer_cart_cart col-xs-12 col-md-12">
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn2 left" title="{l s='Continue shopping' mod='blockcart'}">
|
||||
<span class="continue btn btn2 left" data-link="{$continueLink}" title="{l s='Continue shopping' mod='blockcart'}">
|
||||
<i class="icon"></i>{l s='Continue shopping' mod='blockcart'}
|
||||
</span>
|
||||
<a class="btn" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
|
Loading…
Reference in New Issue
Block a user