So, I have a website with a floating cart and it loads fine and works almost flawlessly lol. However, when a person has a bunch of items in their cart, and they want to minimize it for the rest of their browsing experience, every time a new page loads, or a refresh happens, the floating cart un-minimizes and expands out fully again displaying all the items.
This can become very annoying during the shopping experience when you have a bunch of items loading and just taking up space in the browser. Therefore, I am wondering if their is some html or script that would save the minimizing in the floating cart, and carry it over to the next page, and the rest of the browsing on site?
Thank you for any suggestions/help. I am new to HTML and script writing, but I am eager to learn. Hopefully in the future, I won't be paying for little changes like this every time I need one.
You could set a cookie with javascript or a server side language. Then on a page reload or going to the next page check for the cookie and determine if the cart should be shown or not.
"Hippies.They're everywhere. They wanna save the earth, but all they do is smoke pot and smell bad."-Cartman
Thanks for the suggestion Skywalker. When it comes to JavaScripts or SS language though, I am only a padawon. Is there anywhere I can learn how to write this or even better, just copy and paste something into the rest of my javascripts and code?
Bookmarks