2014-07-14 1 views
-1

내 prestashop에 "바구니에 추가"에 페이지 새로 고침 기능을 추가하고 싶습니다. 가능합니다 (ajax-card.js 파일의 코드)?이 코드의 페이지를 새로 고치는 기능을 추가 할 수 있습니까?

overrideButtonsInThePage : function(){ 
     //for every 'add' buttons... 
     $('.ajax_add_to_cart_button').unbind('click').click(function(){ 
     var idProduct = $(this).attr('rel').replace('nofollow', '').replace('ajax_id_product_', ''); 
     if ($(this).attr('disabled') != 'disabled') 
      ajaxCart.add(idProduct, null, false, this); 
     return false; 
     }); 
     //for product page 'add' button... 
     $('#add_to_cart input').unbind('click').click(function(){ 
     ajaxCart.add($('#product_page_product_id').val(), $('#idCombination').val(), true, null, $('#quantity_wanted').val(), null); 
     return false; 
     }); 
+0

'window.location.reload' – adeneo

답변

1
$('.refresh-button').click(Function(){ 
    location.reload(); 
}) 
관련 문제