Turn Off Notice Displaying On Backend

I want to turn off the notice displaying on the backend but not on the frontend. Is that possible?

I want to turn off the notice displaying on the backend but not on the frontend. Is that possible?

What notice?

js/tygh/core.js

replace:

if (typeof(data.message) == 'undefined') {

with

if (typeof(data.message) == 'undefined' || _.area == 'A') {

then open following file:

design/backend/templates/common/notification.tpl

and change the first and last lines from

{if !"AJAX_REQUEST"|defined}
...

{/if}

to

{* if !"AJAX_REQUEST"|defined}
...

{/if *}

Then clear cache and check the result

(!) Not tested. Do not forget to make backups of these files

Thank you, i will try.

You are welcome!

Does this change affect anything else but the backend?

It would be useful if CS-Cart simply had a setting for this. The notice is blocking all mobile use.

Does this change affect anything else but the backend?

It would be useful if CS-Cart simply had a setting for this. The notice is blocking all mobile use.

Only notifications will be hidden. All error, warning and notice messages.

maybe CS-Cart could at least think about moving it. When editing a product it always appears on top of the tabs. So you have to click it away to move from one tab to another. If it pops ut above or under the tabs it wouldnt be quite so annoying.

Works fine, hope does not affect something else.

Thank you eComLabs!

Thank you for keeping us updated!

maybe CS-Cart could at least think about moving it. When editing a product it always appears on top of the tabs. So you have to click it away to move from one tab to another. If it pops ut above or under the tabs it wouldnt be quite so annoying.

Ok, we will think about this.

Or a simple setting to turn it off. Should be easy to do.

I don't see the point either. If there is an update or I am running the store without cache, then I do not need to see the notice 20 times a day.