开发者

Magento - custom filters on product list page

开发者 https://www.devze.com 2023-02-21 01:44 出处:网络
I ma trying to create 2 filters for a product list page, one for price and the other for a custom attribute I have made; location

I ma trying to create 2 filters for a product list page, one for price and the other for a custom attribute I have made; location

Ideally, what I'd like is a drop down, with the price ranges and another dropdown with the locations and a submit button, which will then filter.

I've had a look round, but I can't seem to find any examples of how to implements this.

On a default Magento store i have locally, I have the layered navigation (开发者_如何学运维on the left) and filtering gives me a URL of: index.php/products?location=7&dir=asc&order=position&price=3%2C1000

So the dropdown filters will need to emulate this, if possible.

Thanks


I had to do this manually with html and pass in the parameters to the search query string.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号