Submit & get multiple posts/products by ID's through url
Hey guys,
I've been learning Laravel for the past couple of months. Now I'm a little bit stuck with the following. Searched all over the internet and can't find the fitting answer yet.
I'm trying to create a test e-commerce platform (just for fun). Now I'm trying to create a sidebar with filters. I already managed to get the categories to work.
Now I'm trying to have several checkboxes, which represent the brands. On click, I want to add this brand to the collection of products shown and show the brand(s) in the URL.
I've been trying a lot of things, if someone can point me in the right direction you'll be my hero!
Thanks for the answer but already got that working but how do I submit a checkbox, get the value, show the corresponding products & persist all the checkboxes checked.
Trying to recreate the typical e-commerce filter behavior.
You should use an ajax request for this and handle the filtering in the background otherwise you have to append the status of each checkbox to your querystring.
I will be using a normal form submit, no ajax involved. Can you elaborate how this would be done with a normal form submit? Trying a lot of things, but nothing seems to append the value to the URL.