Neu Attribute/Merkmale in eigenen Tab

ChrisTS

Sehr aktives Mitglied
15. Oktober 2010
371
61
Eigentlich gar nicht so schwer, was ich hier jetzt poste setzt voraus, das es eine Artikelbeschreibung gibt, wenn das wieder erwarten doch vorkommen sollte muss das natürlich anders angepasst werden aber normal sollte es ja einen Beschreibungstext geben.

lege in deinem Child Template die Datei /productdetails/tabs.tpl an und für den Inhalt dort hinein, lege zusätzlich eine Sprachvariable im Bereich custom an und nenne Sie "merkmale", der Sprachvariable gibst du dann den Text, der da im Tab stehen soll.

PHP:
{block name='productdetails-tabs-tab-description-include-attributes'}
{/block}
{block name='productdetails-tabs-include-attributes'}
{/block}


{block name='productdetails-tabs-tab-description' append}
    {$showAttributesTable = ($Einstellungen.artikeldetails.merkmale_anzeigen === 'Y'
    && !empty($Artikel->oMerkmale_arr) || $showProductWeight || $showShippingWeight
    || $Einstellungen.artikeldetails.artikeldetails_abmessungen_anzeigen === 'Y')}

    {if $showAttributesTable}
        {tab title="{lang key="merkmale" section="custom"}" active=false id="merkmale"}
            {include file='productdetails/attributes.tpl' tplscope='details'
            showProductWeight=$showProductWeight showShippingWeight=$showShippingWeight
            dimension=$dimension showAttributesTable=$showAttributesTable}
        {/tab}
    {/if}
{/block}



{block name='productdetails-tabs-description' append}
    {card no-body=true}
    {cardheader id="tab-merkmale-head"
    data=["toggle" => "collapse",
    "target"=>"#tab-merkmale"
    ]
    aria=["expanded" => "false",
    "controls" => "tab-merkmale"
    ]
    }
    {lang key='merkmale' section='custom'}
    {/cardheader}
    {collapse id="tab-merkmale" visible=false
    data=["parent"=>"#tabAccordion"]
    aria=["labelledby"=>"tab-merkmale-head"]
    }
    {cardbody}
    {block name='productdetails-tabs-card-merkmale'}
        {block name='productdetails-tabs-card-merkmale-content'}
            {opcMountPoint id='opc_before_desc'}
            <div class="desc">
                {include file='productdetails/attributes.tpl' tplscope='details'
                showProductWeight=$showProductWeight showShippingWeight=$showShippingWeight
                dimension=$dimension showAttributesTable=$showAttributesTable}
            </div>
        {/block}
    {/block}
    {/cardbody}
    {/collapse}
    {/card}
{/block}
@css-umsetzung habe das mal übernommen, ist Top!
So ähnlich könnte man doch bestimmt auch die Bundles aus dem CSS Zubehör Plugin von dir in einen eigenen Tab legen?
Kannst das mal bei Gelegenheit umsetzen? Die Sprachvariable im Bereich custom habe ich schon angelegt "cssbundle"
 
  • Gefällt mir
Reaktionen: Weedmaster-Flash

Ähnliche Themen