I want to add a button to my homepage that redirects to a filtered shop
If you want to access the Shop page with pre-selected filters right from the homepage, please stick to the routine below.
Create a filter for Product Categories.
Go to Smart Filters, click the “Add New” button, give it a name and fill in the Filter Settings section as shown further:
Go to edit the Shop page in Elementor. In the left-side toolbar, find the Checkboxes Filter widget and drag and drop it to the desired page area. Afterward, select the filter you’ve just created in the Select filter control. Pick “JetWooBuilder Products Grid” in This filter type for select and make sure to choose “Mixed” as Apply type. Update the changes.
Now, go to the Shop page on the frontend, apply one of the newly-added checkboxes filters, and copy its link somewhere safe. You’ll need it later. Please note that you don’t need to copy the category number. Stop right after the “:” sign.
Create a Listing for Terms.
Go to JetEngine > Listings > Add New and input the following settings:
As soon as you press the “Create Listing Item” button, you’ll be taken to the Elementor page editor. In the left-side toolbar, seek the Dynamic Link widget and drop it to the working area. Next, add the following macro to the Label text area:
Then enable the “Add Query Arguments” toggle and add the macro in the appeared text area:
http://mycrocozine.com/shop/?jsf=jet-woo-products-grid&tax=product_cat: is the applied Category filter’s URL you’ve copied on Step 1;
%queried_term% is a macro that helps you pull up the filtered search results.
Press the “Update”.
Display the Listing on the frontend.
Open to edit your homepage in Elementor. Drag and drop the Listing Grid widget to the appropriate page section. In the Listing control, select the listing you’ve created previously. Adjust the listing display and update the changes.
Now, you can enjoy the way it all works on the front end.