Hi /r/magento,
I’m wondering if there’s a way to let users toggle (show/hide) prices by clicking a button and save the setting to a cookie.
I was playing around with jquery toggle() and save it in localStorage. It kind of works but with a lot of drawbacks. E.g. the price is shown for a few milliseconds when I refresh the page and sometimes it does not even work at all (I think because of Ajax and / or caching).
That’s why I’m looking for a different approach. Any help would be highly appreciated.
submitted by /u/hardy123480
[link] [comments]