I have a category page with images “T-shirt”, “Blouse” etc. When I click on one image it takes me to subsequent page, this process is increasing the page quantity as for each category I have to create a page and connect to its collection. To reduce, I have created a page with repeater and connected it with the product data set but don’t know how to filter and display the category items when a category button is pressed in Category page then the filter will apply while the product page loads. Example- if I press ‘T-Shirt’ in category page, it will redirect to the product page then filter the name of the item that contains ‘T-Shirt’ in the data set while the page loads and show in repeater. I am in big trouble, a help is needed. Thanks.
I found this example
https://www.wix.com/velo/example/multiple-filter-methods
This code is working when the button is in the same page, in my case I have ‘T-Shirt’ button in one page, clicking on that will redirect me to another page, which will show filtered result of T-Shirt on page load. I have no knowledge of programing, so a help is needed to make my site ready. Thanks.
I found out about setItem() and getItem() as my solution to save value that can be used in another page, but I am getting NULL in 2nd page, here is the code in Page 1
import {local} from ‘wix-storage’ ;
export function box8_click(event,$w) {
local.setItem( “jsundertf” , “T-Shirt” );
}
Code in Page 2
import {local} from ‘wix-storage’ ;
export function button1_click(event,$w) {
let x= local.getItem( “jsundertf” )
console.log(x)
}
Returns NULL
I have used session an memory too, but the result is still the same.
Please help, I am very new in this programing and web development. I am stuck badly. Thanks in advance