0

How to display products in home page based on zipcode.

only particular products will be available for delivery in that particular area(zipcode).How should i do that in magento2?

1 Answer 1

0

to do it without external extensions, the only way that I see it now, is creating a custom attribute "zipcode" for your products, set it on your products catalog, and then creating a page with Products widget, filtering by your zipcode attribute, and finally setting this created page as homepage.

But... your product will be with zipcode attribute, what does not make much sense, and you will have to set which zipcode will be rendered on you home page. To get these products dynamically, consider to create your own custom module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.