Render Product Variants Inside Admin Product View


#1

Hello,

When it comes about product variations I feel that it’s very annoying to manage product inventory/stock going to the admin:

Products->(search for the product)->Manage Variants->List->(Select Variant)->Edit

So, I’m trying to render a grid of all product variations inside a tab on the sylius_admin_product_update view.

I already extended the AdminProductFormMenuListener and added the custom tab to the layout but I don’t know how to render a custom grid from the twig file. This is a good approach to do it? or should I consider another way to do this?

Resum: I want to render a resource’s grid inside another resource view and also create a custom action for saving the stock of the variations.

Thank you very much.