Jump to content

how to add notification in backoffice


Recommended Posts

hi,am new to prestashop and i really need a help.Actually,i want to create a notification icon in the back office as soon as i install a module(like merchant expertise,icon trophy will be available to show notifications as soon as the module installed).Can any one help with the procedure how to achieve this task.I am eagerly waiting for the solution.

 

Thanks in advance

Link to comment
Share on other sites

Thank u :) its working..I followed the same procedure in gamification as u said..But i cant understand what ajax doing :mellow: .Please explain me what for ajax part(code) is used.Am weak in ajax. :(

 

$.ajax({
type: 'POST',
url: admin_gamification_ajax_url,
dataType: 'json',
data: {
controller : 'AdminGamification',
action : 'gamificationTasks',
ajax : true,
},
success: function(jsonData)
{
 
 
 
initHeaderNotification(jsonData.header_notification);
 
 
 
$(".preactivationLink").on('click', function(e) {
e.preventDefault();
preactivationLinkClick($(this).attr('rel'), $(this).attr('href'));
});
 
 
}
});
 

:rolleyes:

Link to comment
Share on other sites

×
×
  • Create New...