Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I create a product grid in the storefront using the Hyva_Admin module? #74

Open
adil-dolphin opened this issue Aug 29, 2023 · 4 comments

Comments

@adil-dolphin
Copy link

Currently, I'm facing a new challenge: I need to construct a product grid in the storefront using the same module. While its effectiveness in the admin area is clear, I'm uncertain about its extension to frontend development. I've reviewed the documentation and explored the module's features, but I'm missing a straightforward guide or example that addresses this particular objective.

Question:
Could someone provide guidance or an example on how to utilize the hyva-themes/module-magento2-admin module to create a product grid in the storefront? I'm aiming to maintain the same level of efficiency and joy that this module has brought to adminhtml development. Any code snippets, instructions, or pointers would be greatly appreciated.

@fredden
Copy link
Contributor

fredden commented Aug 29, 2023

This looks like a duplicate of #1.

@Vinai
Copy link
Collaborator

Vinai commented Aug 30, 2023

Like @fredden said, frontend grids are very experimental and probably require working around some unexpected results.

That said, the steps should be similar, that is, add the grid layout handle to the page, create a block class extending the frontend grid class, and add the grid xml file...

Please report how it works out if you go through with this.

@adil-dolphin
Copy link
Author

adil-dolphin commented Sep 11, 2023

Thanks to @Vinai and @fredden for the support and suggestions! Successfully integrated this on the frontend. 🙏

image

@Vinai
Copy link
Collaborator

Vinai commented Sep 12, 2023

Congratulations, that's very cool!
Is there any way this library could be improved to make the grids easier?
I'm thinking of a way to match the alpine version or tailwind to the frontend theme version for example....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants