# Infinite Scrolling mit eigener Produkt-Box

**URL:** https://forum.shopware.com/t/infinite-scrolling-mit-eigener-produkt-box/59957
**Category:** Programmierung
**Created:** [11. Juni 2019 um 13:00 UTC](https://forum.shopware.com/t/infinite-scrolling-mit-eigener-produkt-box/59957 "2019-06-11T13:00:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Frank\_2812](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@Frank\_2812](https://forum.shopware.com/u/Frank_2812)
#### Post date: [11. Juni 2019 um 13:00 UTC](https://forum.shopware.com/t/infinite-scrolling-mit-eigener-produkt-box/59957/1 "2019-06-11T13:00:39Z")

</div>

Hallo,

ich möchte im Produktlisting eine Tabelle verwenden. Dazu habe ich folgende “listing.tpl” gemacht:

```
{extends file="parent:frontend/listing/listing.tpl"}

{block name="frontend_listing_listing_content"}
    {if $productBoxLayout == 'table'}
            
            
                Name
                Eigenschaften
                Preis
                Menge
             

            {block name="frontend_listing_list_inline"}
                {foreach $sArticles as $sArticle}
                    {include file="frontend/listing/product-box/box-table.tpl"}             
                {/foreach}
            {/block}

        
    {else}
        {$smarty.block.parent} 
    {/if}
{/block}

```

Die dazugehörige “box-table.tpl”:

```
{extends file="frontend/listing/product-box/box-basic.tpl"}

{namespace name="frontend/listing/box_article"}

{block name="frontend_listing_box_article"}
    {block name="frontend_listing_box_article_content"}
        
        {block name='frontend_listing_box_article_badges'}{/block}

        {block name='frontend_listing_box_article_info_container'}
            
                
                    
                        {$sArticle.articleName|truncate:50|escapeHtml}
                    
                
                
                
                
            
        {/block}

    {/block}
{/block}

```

Leider bekomme ich nun bei diesem Layout kein infinite-Scrolling hin, obwohl es in den Einstellungen gesetzt ist. Es ist immer Pagination aktiv. Bei den Standardlayouts klappt es aber problemlos.

Nach einigem Suchen habe ich nun noch die “listing\_ajax.tpl” angepasst:

```
{extends file='parent:frontend/listing/listing_ajax.tpl'}

{block name="frontend_listing_list_inline_ajax"}

{if $productBoxLayout == 'table'}

    {foreach $sArticles as $sArticle}
        {include file="frontend/listing/product-box/box-table.tpl"}             
    {/foreach}

 {else}
    {$smarty.block.parent} 
{/if}

{/block}

```

Trotzdem bekomme ich das infinite Scrolling nicht aktiv. Ich habe massenhaft Postings gelesen, komme aber einfach nicht weiter. Wie ist der grundsätzliche Ansatz, um infinite-Scrolling in eigenen Layouts zum Laufen zu bekommen?

Viele Grüße, Frank
