Duplicate updateCart() (v2-alpha)

@tim
In templates/views/box_cart.inc.php, you should remove all the update script that is already in app.js and so on, there can be a bug.
I saw that while I was modifying, of course, cause I use fontawesome instead of svg for the icons. And there was no way to have that working until I understood there are 2 functions updateCart loaded...

  function updateCart() {
    $.ajax({
      url: '',
      type: 'get',
      cache: false,
      async: true,
      dataType: 'json',
      beforeSend: function(jqXHR) {
        jqXHR.overrideMimeType("text/html;charset=");
      },
      error: function(jqXHR, textStatus, errorThrown) {
        //alert('Error');
      },
      success: function(data) {
        $('#cart .quantity').html(data['quantity']);
        $('#cart .formatted_value').html(data['formatted_value']);
        if (data['quantity'] > 0) {
          $('#cart img').attr('src', 'images/cart_filled.svg');
        } else {
          $('#cart img').attr('src', 'images/cart.svg');
        }
      },
      complete: function() {
        $('*').css('cursor', '');
      }
    });
  }
  var timerCart = setInterval("updateCart()", 60000); // Keeps session alive

You're welcome. Personnally, my timerCart is set to 10s instead of 60s. But that's my choice.
And I updated my core with all your latest files on github.
It seems that's resolving wysiwig editor and buttons or options problems in admin panel.

Chủ đề này đã bị đóng do không hoạt động trong thời gian dài. Không thể đăng bài vào chủ đề này.
View code on GitHub