Je me permet de remonter ce sujet suite à une mise à jour en 8.2.3, le fichier notification.js n'étant plus le même.
J'ai testé en plaçant le bout de code à divers endroits dans la partie ci-dessous mais sans succès, quelqu'un aurait il une idée ?
Merci par avance pour votre aide.
function getPush() {
$.ajax({
type: 'POST',
headers: { "cache-control": "no-cache" },
url: `${admin_notification_get_link}&rand=${new Date().getTime()}`,
cache: false,
dataType: 'json',
success: function (json) {
setTimeout(getPush, 120000);
if (!json) {
return;
}
// Add orders notifications to the list
renderNotifications('orders-notifications', json.order, renderOrderNotification);
// Add customers notifications to the list
renderNotifications('customers-notifications', json.customer, renderCustomerNotification);
// Add messages notifications to the list
renderNotifications('messages-notifications', json.customer_message, renderMessageNotification);
var notifCount = parseInt(json.order.total) + parseInt(json.customer.total) + parseInt(json.customer_message.total);
if (notifCount > 0) {
$("#total_notif_number_wrapper").removeClass('hide');
$('#total_notif_value').text(notifCount);
} else {
$("#total_notif_number_wrapper").addClass('hide');
}
}
});
}