By: Juan Pablo Otalvaro
Do you ever experience downtime or other usage issues with your Storefront Servers? When you’re in the middle of an outage your customers may be left in the dark about what is going on. This information black-hole leads to countless tech support calls that drain resources and add needless stress for you and your clients. Wouldn’t it be great if there was a way to notify your customers in an efficient, instant and unobtrusive way? An effective solution to this problem is to add a scrolling news ticker/notifications bar at the top of the page that all your customers can see immediately and that you can change instantly—all without actually touching the storefront servers. Let’s take a look at how to implement one.
Here is an example of how the notifications bar will look after the user logs in to the Storefront Servers:
The best approach to a functional notifications bar is to create a rewrite policy that intercepts the Storefront Response and injects a HTML code that calls the file with a custom message that later will be invoked with a Responder Policy. Finally, these policies are bound globally so they will detect the custom Header on any HTTP Response and modify it on every request.
Alternatively, if you want to save CPU cycles on NetScaler you can bind the policies only to the Storefront Load Balancing Virtual Server instead of globally.
- Storefront 3.5+
- Citrix ADC Version 10+
- Storefront Servers must be load balanced through the Citrix ADC
- Download the following 2 Files (Please right click the links and open in a new tab)
- Login to Citrix ADC using your credentials
- Go the Configuration Tab
- Open the Menu AppExpert -> Responder -> HTML Page Imports
- Click on Add
- On the Name field type nscustommessage , then, In the “Import From” menu, select file, and in Local file, select the nscustommessage.html file that you previously downloaded
- Click Continue
- Then go to System -> Diagnostics -> Utilities -> Batch Configuration
- On file Path, click in “Choose File” and select the custommessage_script.ns file that you previously download, Then click on Run.
- Finally, test and Save the configuration. You’re ready to go!
Hopefully you’ve found this tutorial useful and can implement the notifications bar with ease. Doing so will reduce the time and money wasted on needless support calls and will ultimately result in happier customers. Happy updating!