diff --git a/admin-dev/themes/template/header.tpl b/admin-dev/themes/template/header.tpl
index eccf341d9..8988d74fc 100644
--- a/admin-dev/themes/template/header.tpl
+++ b/admin-dev/themes/template/header.tpl
@@ -34,6 +34,18 @@
var helpboxes = {$help_box};
var roundMode = {$round_mode};
+ {if isset($shop_context)}
+ {if $shop_context == 'all'}
+ var youEditFieldFor = {l s='A modification of this field will be applied for all shops'}
+ {elseif $shop_context == 'group'}
+ var youEditFieldFor = {l s='A modification of this field will be applied for all shops of group '}{$shop_name}
+ {else}
+ var youEditFieldFor = {l s='A modification of this field will be applied for the shop '}{$shop_name}
+ {/if}
+ {else}
+ var youEditFieldFor = '';
+ {/if}
+
{* Notifications vars *}
var new_order_msg = '{l s='A new order has been made on your shop.'}';
var order_number_msg = '{l s='Order number : '}';
@@ -46,6 +58,8 @@
var new_msg = '{l s='A new message posted on your shop.'}';
var excerpt_msg = '{l s='Excerpt : '}';
var see_msg = '{l s='Click here to see that message'}';
+ var token_admin_orders = '{$token_admin_orders}';
+ var token_admin_customers = '{$token_admin_customers}';
{if isset($css_files)}
@@ -85,18 +99,6 @@
- {if $is_multishop}
-
- {/if}
{/if}
diff --git a/classes/AdminController.php b/classes/AdminController.php
index d67694c51..0607b752b 100644
--- a/classes/AdminController.php
+++ b/classes/AdminController.php
@@ -239,6 +239,7 @@ class AdminController extends Controller
'show_new_messages' => Configuration::get('PS_SHOW_NEW_MESSAGES'),
'token_admin_orders' => Tools::getAdminTokenLite('AdminOrders'),
'token_admin_customers' => Tools::getAdminTokenLite('AdminCustomers'),
+ 'token_admin_messages' => Tools::getAdminTokenLite('AdminMessages'),
'token_admin_employees' => Tools::getAdminTokenLite('AdminEmployees'),
'token_admin_search' => Tools::getAdminTokenLite('AdminSearch'),
'first_name' => Tools::substr($this->context->employee->firstname, 0, 1),
diff --git a/js/notifications.js b/js/notifications.js
index 304d1c232..5c23b4ec4 100644
--- a/js/notifications.js
+++ b/js/notifications.js
@@ -9,7 +9,7 @@ function getPush()
html = "";
nb_notifs = 0;
$.each(json.order, function(property, value) {
- html += "
" + new_order_msg + "
" + order_number_msg + "#" + parseInt(value.id_order) + "
" + total_msg + "" + value.total_paid_real + "
" + from_msg + "" + value.customer_name + "
" + see_order_msg + "";
+ html += "
" + new_order_msg + "
" + order_number_msg + "#" + parseInt(value.id_order) + "
" + total_msg + "" + value.total_paid_real + "
" + from_msg + "" + value.customer_name + "
" + see_order_msg + "";
});
if (html != "")
{
@@ -28,7 +28,7 @@ function getPush()
html = "";
nb_notifs = 0;
$.each(json.customer, function(property, value) {
- html += "
" + new_customer_msg + "
" + customer_name_msg + "" + value.customer_name + "
" + see_customer_msg + "";
+ html += "
" + new_customer_msg + "
" + customer_name_msg + "" + value.customer_name + "
" + see_customer_msg + "";
});
if (html != "")
{