• Hi,

    I saw a closed post on this topic, and and that would be interesting for us.

    We use this plugin on webshop, where before Christmas or other holidays, we need to notify the customers, that they can order non-stop, but the orders will be processed after holiday.

    Customers close the notification bar, and can order undisturbed. But If they come back to the webshop a few days later, they need to see the notification again.

    It would great, If we can change between local / session storage.

    Greets,
    Bela

Viewing 1 replies (of 1 total)
  • Plugin Author wpexplorer

    (@wpexplorer)

    Hi Bela,

    The only way you can switch to session storage would be to dequeue the front.js file (“easy-notification-bar” is the script handle) and then add your own javascript to handle the close functionality.

    At this time I don’t think I would update the plugin to offer the option to choose between the two because it just adds extra bloat for a functionality that isn’t needed for by most people.

    Using session storage for a notification bar can be annoying if the customer comes back the same day, which is why most people don’t use it. If you were to remove the plugin’s script and add your own to handle the close effect, I would recommend using cookies instead this way you could set the expiration of the cookie to let’s say “x” number of days.

    If anything, I may consider updating the script to use cookies instead so that you could define a length for the cookie via the Customizer settings. I think this may be something more people would find useful.

    • AJ
Viewing 1 replies (of 1 total)
  • The topic ‘Local storage vs. Session storage (Part 2)’ is closed to new replies.