Hello Friends!
Idea: Put a checkbox on product browse page:
*when checked - show products that are out of stock
*when un-checked do not show out-of-stock products.
I can make it work for one page load by using form POST or GET.
I can even make it work for the whole session by using joomla sessions.
But i can't make it change the session value when unchecked.
So basically i need a few lines that will:1. Set session to state "A" when checkbox is checked
2. Set session to state "B" when checkbox is un-checked
Also - after setting it to state "A" it should stay in that state and checkbox should appear as CHECKED until it is unchecked by the user.
The product sorting and filtering i will do myself.
I am open to any other solutions too.
It looks to me that this will only take a few lines of code but i can't find the correct approach.
I would love to buy you a cup of coffee if you help me out with this

Regards, Casper