2017-11-08 20 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

関連する問題