ruthra.g Posted October 5, 2015 Share Posted October 5, 2015 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 More sharing options...
gabdara Posted October 6, 2015 Share Posted October 6, 2015 You'll have to use javascript to append your icon notification and manage it's behavior with AJAX. Take a look at how Merchant expertise module is doing this: https://github.com/PrestaShop/gamification/blob/master/views/js/gamification.js#L8 Link to comment Share on other sites More sharing options...
ruthra.g Posted October 6, 2015 Author Share Posted October 6, 2015 Thank u its working..I followed the same procedure in gamification as u said..But i cant understand what ajax doing .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')); }); } }); Link to comment Share on other sites More sharing options...
Recommended Posts