2017-11-08 7 views

답변

0

편집 파일 : catalog/view/theme/yourtheme/template/product/product.tpl 다음과 같은 수정을 :

코드를 찾기 :

if (json['success']) { 
       $('.breadcrumb').after('<div class="alert alert-success">' + json['success'] + '<button type="button" class="close" data-dismiss="alert">&times;</button></div>'); 

       $('#cart > button').html('<span id="cart-total"><i class="fa fa-shopping-cart"></i> ' + json['total'] + '</span>'); 

       $('html, body').animate({ scrollTop: 0 }, 'slow'); 

       $('#cart > ul').load('index.php?route=common/cart/info ul li'); 
      } 

는 다음 코드로 바꿉니다 :

if (json['success']) { 
    window.location='index.php?route=checkout/checkout'; 
} 

한 후 관리자에서 수정 캐시를 새로 고칩니다.
관리자> 확장 프로그램> 수정으로 이동하여 시스템을 업데이트하려면 파란색 새로 고침 버튼 (오른쪽 상단)을 클릭 한 다음 확인하십시오 (테마에 다른 캐시 옵션이있는 경우, 캐시 새로 고침)

+0

솔루션을 공유해 주셔서 감사합니다. 하지만 불행히도 그것은 나를 위해 작동하지 않습니다 – Ali

+0

나는이 예제를 이미 확인했습니다. 우리 편에서 잘 작동하고 있습니다. 캐시 문제 일 수 있습니다. 변경 후 캐시를 올바르게 새로 고침/제거하십시오. 감사. – HarnishDesign