# Combine inherited and added properties for Product Variations

**URL:** <https://forum.shopware.com/t/combine-inherited-and-added-properties-for-product-variations/103938>\
**Category:** Programming (EN)\
**Tags:** programming\
**Created:** [6. Mai 2024 um 20:52 UTC](https://forum.shopware.com/t/combine-inherited-and-added-properties-for-product-variations/103938 "2024-05-06T20:52:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maksim.snehauskoi](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@maksim.snehauskoi](https://forum.shopware.com/u/maksim.snehauskoi)\
**Post date:** [6. Mai 2024 um 20:52 UTC](https://forum.shopware.com/t/combine-inherited-and-added-properties-for-product-variations/103938/1 "2024-05-06T20:52:08Z")

</div>

Hello, I’m creating a variation  
`$this->productRepository->upsert([`  
` $variant`  
`], Context::` `createDefaultContext` `());`  
In `$variant` I set one property and it overwrites all inherited properties from the parent product which I need as well. Is it possible to add a new property to the variation and leave inherited properties at the same time?  
Or show both on the storefront
