theoden LiteCart Fan Từ France Thành viên kể từ thg 1 2015 theoden 13 thg 2 2017 13:30 @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
tim Founder Từ Sweden Thành viên kể từ thg 5 2013 tim 13 thg 2 2017 13:49 Very much appreciated, thanks. I created a reference at https://github.com/litecart/litecart/issues/15
theoden LiteCart Fan Từ France Thành viên kể từ thg 1 2015 theoden 13 thg 2 2017 14:00 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.