Brake Fittings

 
'); jQuery('#ajax_loader').hide(); setTimeout(function () {jQuery('.add-to-cart-success').slideUp(500)}, 5000); jQuery('.add-to-cart-success a.btn-remove').click(function(){ jQuery(this).parent().slideUp(500); return false; }); }else{ function sidebarContent(data){ if(jQuery('#cart-sidebar').length){ jQuery('#cart-sidebar').html(jQuery(data).find('#mini-cart')); jQuery('.sidebar .block.block-cart .subtotal').html(jQuery(data).find('.subtotal')); }else{ jQuery('.sidebar .block.block-cart p.empty').remove(); content = jQuery('.sidebar .block.block-cart .block-content'); jQuery('
    ').appendTo(content); jQuery('
    ').appendTo(content); content.find('#cart-sidebar').html(jQuery(data).find('#mini-cart').html()); content.find('.actions').append(jQuery(data).find('.subtotal')); content.find('.actions').append(jQuery(data).find('.actions button.button')); } } function cartSuccess(){ setTimeout(function () { jQuery('.add-to-cart-success').slideUp(500) }, 5000); jQuery('.add-to-cart-success a.btn-remove').click(function(){ jQuery(this).parent().slideUp(500); return false; }); } if(data.sidebar && !iframe){ if(jQuery('header#header .top-cart').length){ jQuery('header#header .top-cart').replaceWith(data.sidebar); } if(jQuery('.sidebar .block.block-cart').length){ sidebarContent(data.sidebar); cartProductRemove('#cart-sidebar li.item a.btn-remove', { confirm: 'Are you sure you would like to remove this item from the shopping Basket?', submit: 'Ok', calcel: 'Cancel' }); } jQuery.fancybox.close(); jQuery('body').append('
    ' + data.message +'
    Go to BasketContinue Shopping
    '); cartSuccess(); }else{ jQuery.ajax({ url: "https://www.motorsport-tools.com/meigeeactions/updatecart/?isAjax=true/&SID=27subj2jqtq7hs7u9ibsfmgac1", cache: false }).done(function(html){ if(jQuery('header#header .top-cart').length){ jQuery('header#header .top-cart').replaceWith(html); } if(jQuery('.sidebar .block.block-cart').length){ sidebarContent(html); } jQuery('#mini-cart li.item a.btn-remove, #cart-sidebar li.item a.btn-remove').on('click', function(event){ event.preventDefault(); jQuery('body').append('
    Are you sure you would like to remove this item from the shopping Basket?
    OkCancel
    '); jQuery('.cart-remove-box a').on('click', function(){ link = jQuery(this).attr('href'); jQuery.ajax({ url: link, cache: false }); jQuery('.cart-remove-box').remove(); setTimeout(function(){window.location.reload();}, 800); }); }); jQuery.fancybox.close(); jQuery('body').append('
    ' + name +' was added to your shopping cart.
    Go to Basket
    '); cartSuccess(); }); } } } function setLocationAjax(url,id,name,image){ url += 'isAjax/1'; url = url.replace("checkout/cart","ajax/index").replace(/\?\_\_\_SID=U/ig, ''); jQuery('#ajax_loader'+id).show(); try { jQuery.ajax({ url : url, dataType : 'json', success : function(data) { jQuery('#ajax_loader'+id).hide(); jQuery('.products-grid li.item').removeClass('active'); setAjaxData(data,false,name,image); } }); } catch (e) { } } gridLabels(); productHoverImages();