# Wann wird Kategorie-Sichtbarkeit geprüft?

**URL:** <https://forum.shopware.com/t/wann-wird-kategorie-sichtbarkeit-gepruft/18080>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [30. Januar 2014 um 09:37 UTC](https://forum.shopware.com/t/wann-wird-kategorie-sichtbarkeit-gepruft/18080 "2014-01-30T09:37:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmmichael](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mmmichael](https://forum.shopware.com/u/mmmichael)\
**Post date:** [30. Januar 2014 um 09:37 UTC](https://forum.shopware.com/t/wann-wird-kategorie-sichtbarkeit-gepruft/18080/1 "2014-01-30T09:37:56Z")

</div>

Hallo, an welcher Stelle wird in Shopware 4.1.4 eigentlich die Sichtbarkeit der Kategorie geprüft, wenn ich z.B. einfach [www.domain.de/shopware.php?sViewport=cat&sCategory=976](http://www.domain.de/shopware.php?sViewport=cat&sCategory=976) aufrufe? Kann im Listing Controller irgendwie nichts finden!? Hab hier ein blödes Problem mit einem 503er (den Google mir meldet), weil in der Core-Klasse sArticles.sGetArticlesByCategory keine CategoryId vorhanden ist. Gruß, Michael

---

<div class="post-metadata">

**Author:** ![mmmichael](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mmmichael](https://forum.shopware.com/u/mmmichael)\
**Post date:** [30. Januar 2014 um 10:22 UTC](https://forum.shopware.com/t/wann-wird-kategorie-sichtbarkeit-gepruft/18080/2 "2014-01-30T10:22:29Z")

</div>

Hab mir jetzt wie folgt geholfen: [quote] $categoryId = $this-\>Request()-\>getParam(‘sCategory’); $categoryContent = Shopware()-\>Modules()-\>Categories()-\>sGetCategoryContent($categoryId); $categoryId = $categoryContent[‘id’]; Shopware()-\>System()-\>\_GET[‘sCategory’] = $categoryId; if(empty($categoryId)==true){ $this-\>Response()-\>setHttpResponseCode(404); return; }[/quote] Ist aber mehr ein Workaround, damit aus den 503ern wenigsten 404er werden!
