# Assign products to parent cateogry

**URL:** <https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505>\
**Category:** International (English Only)\
**Tags:** general\
**Created:** [11. August 2017 um 13:45 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505 "2017-08-11T13:45:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)\
**Post date:** [11. August 2017 um 13:45 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/1 "2017-08-11T13:45:22Z")

</div>

Hi!

I’m trying to do something but without luck at the moment. I have a category, let say phones and inside another category as child, let say accessories. This is a easy structure to create, the problem is I can’t assign any product to phones (it look like a folder), so I created a phones category inside phones:

phones  
–phones  
–accessories

This is working too but the url would be website/phones/phones and also this option appears twice in the menu. Is there any way to do this on shopware?

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [11. August 2017 um 15:22 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/2 "2017-08-11T15:22:44Z")

</div>

you could name the subcategory „devices“ or „smartphones“ or something similar

---

<div class="post-metadata">

**Author:** ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)\
**Post date:** [14. August 2017 um 08:03 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/3 "2017-08-14T08:03:22Z")

</div>

Hi NextMike,

Thank you for your answer. I can’t rename the category, that was just an example but with the real products can’t do that. Any other idea?

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [14. August 2017 um 08:09 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/4 "2017-08-14T08:09:10Z")

</div>

Take it as a&nbsp;general idea, it’s transferable to any structure. And no, you can’t assign products to category which has subcategories. You have to work on your structure.

---

<div class="post-metadata">

**Author:** ![maxkon](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@maxkon](https://forum.shopware.com/u/maxkon)\
**Post date:** [14. August 2017 um 08:10 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/5 "2017-08-14T08:10:54Z")

</div>

Hey roberto,

We ran into the same issue and we found a compromise solution.

We created a sub-category called ‚all‘ inside the main category called ‚food‘. Now in our case we wanted the customer to get redirected to the ‚all‘ sub-category when the customer clicked on the main category point.

If that could do the job for you, I could explain the procedure to apply that, in detail.

&nbsp;

Maybe it helps,

Max Konrad

&nbsp;

Edit: You can easily just disable the option that the person sees the ‚all‘ category point in the menu by checking a box in the backend

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [14. August 2017 um 08:12 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/6 "2017-08-14T08:12:28Z")

</div>

or, wait, you could test this plugin:&nbsp;[https://store.shopware.com/mbdus01597/manuelle-artikelsortierung-in-kategorien.html](https://store.shopware.com/mbdus01597/manuelle-artikelsortierung-in-kategorien.html)

with that you can mess around with the proper structure.

---

<div class="post-metadata">

**Author:** ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)\
**Post date:** [14. August 2017 um 08:31 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/7 "2017-08-14T08:31:10Z")

</div>

Thank you for your answers,

@NextMike‍ I’m going to test that plugin, as I can’t change the structure, in this particular case it’s not transferable as it’s very specific.

@maxkon‍ at the moment I’m using a similar solution, but instead adding the ‘all’ category as doesn’t make sense on my structure I’m using hidden categories. In your solution, do you have ‘all’ in the url?

---

<div class="post-metadata">

**Author:** ![maxkon](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@maxkon](https://forum.shopware.com/u/maxkon)\
**Post date:** [14. August 2017 um 08:47 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/8 "2017-08-14T08:47:59Z")

</div>

Oh okey.

Well the name isn’t important so it might work.

Yes in my solution I have the all in the url. Though I am totally sure that you could hide that part with a little php script

---

<div class="post-metadata">

**Author:** ![vanwittlaer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/vanwittlaer/32/8499_2.png) [@vanwittlaer](https://forum.shopware.com/u/vanwittlaer)\
**Post date:** [17. August 2017 um 12:48 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/9 "2017-08-17T12:48:41Z")

</div>

Max,

You may also want to consider using the ‘properties’ to serve your needs. You could e.g. define a set ‘phones’ and another one ‘cameras’. Then for phones you could define a property ‘type’ with values ‘phones’, ‘cables’, ‘chargers’ etc.

Frontend-access to the properties is easy by using facets, but you could also mirror them by means of product-feed-based categories for access via a category tree.

Cheers,

Geert

---

<div class="post-metadata">

**Author:** ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)\
**Post date:** [17. August 2017 um 13:28 UTC](https://forum.shopware.com/t/assign-products-to-parent-cateogry/47505/10 "2017-08-17T13:28:01Z")

</div>

Hi @vanwittlaer‍ I’ll give it a try but this seems to be a lot of work just for an ‘easy’ thing.

Thank you for sharing your knowledge guys!
