Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

Wo wird die Variable $productBoxLayout ausgegeben?

$
0
0

Hallo Leute,

 

arbeite gerade daran einen eigenen Produkt-Slider Template zu erstellen und komme nicht weiter. Die Datei "/themes/Frontend/THEME/frontend/listing/box_article.tpl" hat bei mir folgende Struktur:

 

{block name="frontend_listing_box_article_includes"}

    {if $productBoxLayout == 'minimal'}
        {include file="frontend/listing/product-box/box-minimal.tpl"}

    {elseif $productBoxLayout == 'image'}
        {include file="frontend/listing/product-box/box-big-image.tpl"}

    {elseif $productBoxLayout == 'slider'}
        {include file="frontend/listing/product-box/box-product-slider.tpl"}

    {elseif $productBoxLayout == 'emotion'}
        {include file="frontend/listing/product-box/box-emotion.tpl"}

    {elseif $productBoxLayout == 'newslider'}
        {include file="frontend/listing/product-box/newslider.tpl"}

    {else}
        {block name="frontend_listing_box_article_includes_additional"}
            {include file="frontend/listing/product-box/box-basic.tpl" productBoxLayout="basic"}
        {/block}
    {/if}
{/block}

 

Jetzt möchte ich nun, dass sich "newslider.tpl" aktiviert, sobald ein ProductStream verfügbar ist. Ziel ist es hierbei, das Aussehen der ProductStreams zu ändern, ohne das Aussehen von den anderen Produkt-Slidern, wie bspw. "Kunden haben sich ebenfalls angesehen", zu beeinflussen. 

 

Hoffe konnte vermitteln worum es geht und danke euch für eure Mithilfe.

 

Cheers

 


Viewing all articles
Browse latest Browse all 2871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>