Adding attribute filtering on the ecshop search page and finding information online cannot solve the problem. please help me. Currently, only style is available, if there is no data to write the dead variable of his SQL query, you can replace it with the one that passes through the search,
The SQL where statement changes according to the filter conditions. for example:
$ Filter ['brand'] = isset ($ _ REQUEST ['brand'])? Trim ($ _ REQUEST ['brand']): ''; // brand $ filter ['price'] = isset ($ _ REQUEST ['price'])? Trim ($ _ REQUEST ['price']): ''; // price $ filter ['attribute'] = isset ($ _ REQUEST ['attribute'])? Trim ($ _ REQUEST ['attribute']): ''; // attribute $ where =" WHERE 1 "; if ($ filter ['brand']! = '') {$ Where. =" AND brand = ". addslashes ($ filter ['brand']);} if ($ filter ['price']! = '') {$ Where. =" AND price = ". addslashes ($ filter ['price']);} if ($ filter ['attribute']! = '') {$ Where. =" AND attribute = ". addslashes ($ filter ['attribute']);}