# How to create a product with variants like in Shopware5

**URL:** https://forum.shopware.com/t/how-to-create-a-product-with-variants-like-in-shopware5/63299
**Category:** Programming (EN)
**Created:** [2. Dezember 2019 um 21:56 UTC](https://forum.shopware.com/t/how-to-create-a-product-with-variants-like-in-shopware5/63299 "2019-12-02T21:56:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rydori](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@Rydori](https://forum.shopware.com/u/Rydori)
#### Post date: [2. Dezember 2019 um 21:56 UTC](https://forum.shopware.com/t/how-to-create-a-product-with-variants-like-in-shopware5/63299/1 "2019-12-02T21:56:29Z")

</div>

I’m currently Programming a Plugin in Shopware 6, and now I have the Problem, that I need to create a Product and I dont exactly how to to it in a Controller.

In the generated Product following attributes must be set: price, description, pictures have to be added, each newly created product has variants (sizes)

Furthermore I need the Link to the newly generated Product to redirect to it.

Thank you in Advance

---

<div class="post-metadata">

### Author: ![j.dionant](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@j.dionant](https://forum.shopware.com/u/j.dionant)
#### Post date: [10. März 2021 um 21:27 UTC](https://forum.shopware.com/t/how-to-create-a-product-with-variants-like-in-shopware5/63299/2 "2021-03-10T21:27:57Z")

</div>

Have you fixed the problem regarding the variants already? I also cant find a solution for this
