# Varianten als Tabelle??

**URL:** <https://forum.shopware.com/t/varianten-als-tabelle/22289>\
**Category:** Shopware 3.5\
**Tags:** themes--design\
**Created:** [7. September 2014 um 10:50 UTC](https://forum.shopware.com/t/varianten-als-tabelle/22289 "2014-09-07T10:50:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunnet-it](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sunnet-it](https://forum.shopware.com/u/sunnet-it)\
**Post date:** [7. September 2014 um 10:50 UTC](https://forum.shopware.com/t/varianten-als-tabelle/22289/1 "2014-09-07T10:50:40Z")

</div>

Wir sind seit ein paar Tagen von Shopware 3 auf 4 umgestiegen. Leider funktioniert das Plugin „Varianten als Tabelle“ seit dem nicht mehr so wie wir uns es vorstellen. Mit diesen Code funktioniert es soweit ganz gut: {{block name=„frontend\_index\_header\_javascript“ append}{/block} {block name=„frontend\_index\_header\_css\_screen“ append}  
.spinner {  
position: relative;  
display: inline-block;  
width: 50px;  
}  
.spinner .spinnerButton {  
border: solid 1px #000000;  
background: #ffffff;  
position: absolute;  
top: 0;  
width: 15px;  
height: 11px;  
line-height: 5px;  
cursor: pointer;  
}  
.spinner .decrement {  
top: auto;  
bottom: 0;  
}  
input::-webkit-outer-spin-button,  
input::-webkit-inner-spin-button {  
/\* display: none; ← Crashes Chrome on hover _/  
-webkit-appearance: none;  
margin: 0; /_ ← Apparently some margin are still there even though it’s hidden \*/  
}  
.buyCell {  
width: 285px;  
}  
{/block} {block name=„frontend\_detail\_index\_detail“ prepend}

&nbsp;

| {if $configuratorTableConfig.showNumber} Produktbild | {else} {s name=„configName“}Name{/s} | {/if} {if $configuratorTableConfig.showImage} Artikelbezeichnung | {/if} {foreach from=$configuratorTable-\>getConfiguratorSet()-\>getGroups() item=cTitle} Status | {/foreach} {if $configuratorTableConfig.showAttrfield} {foreach from=";"|explode:$configuratorTableConfig.showAttrfield item=field} {$field|snippet:„configTableAttrfield`$configuratorTable-\>getMainDetail()-\>getNumber()``$field`“:„frontend/plugins/niul\_configuratortable/attribute\_title“} | {/foreach} {/if} {s name=„configPrice“}Preis{/s} | {s name=„configSelection“}Auswahl{/s} |  
{foreach from=$configuratorTableSortedByOrdernumber item=configRow} {if $ctHelper-\>checkInstock($configRow)} | {if $configuratorTableConfig.showImage} Art. Nr.&nbsp{$configRow-\>getNumber()} {foreach from=$sArticle.images item=image} {if $image.relations == $sArticle.ordernumber} ![{$sArticle.articleName}]() {assign var=hasImage value=true} {/if} {/foreach} {if $hasImage != true} ![{$sArticle.articleName}]( "{if $sArticle.image.res.description}{$sArticle.image.res.description}{else} {$sArticle.additionaltext}{/if}") {/if} | {/if}

{$sArticle.additionaltext}

{$sArticle.attr3|nl2br}

| {include file=‚frontend/plugins/index/delivery\_informations.tpl‘ sArticle=$sArticle} |

**{if $sArticle.pseudoprice}{$sArticle.pseudoprice|currency}  
{/if}{$sArticle.price|currency}** {if $sArticle.referenceunit}  
{$sArticle.referenceunit} {$sArticle.sUnit.unit} = {$variant.referenceprice|currency} {/if}

|   
  
{if $sArticle.laststock || $sArticle.instock \< $sArticle.maxpurchase}  
{assign var=maxQuantity value=$sArticle.instock+1}  
{else}  
{assign var=maxQuantity value=$sArticle.maxpurchase+1}  
{/if}  
{if $maxQuantity == 1}  
{assign var=maxQuantity value=$configuratorTableConfig.maxPurchase+1}  
{/if}  
{if $sArticle.minpurchase == 0}  
{assign var=minQuantity value=1}  
{else}  
{assign var=minQuantity value=$sArticle.minpurchase}  
{/if}  
 {section name=„i“ start=$minQuantity loop=$maxQuantity step=$sArticle.purchasesteps} {$smarty.section.i.index}{if $sArticle.packunit} {$sArticle.packunit}{/if} {/section}  
   
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp  
  
{s name=„DetailBuyActionAdd“ namespace=„frontend/detail/buy“}{/s}  
  
 |  
{/if} {/foreach}

{/block} Leider wird bei jeder Variante der Hauptartikel angezeigt. Das bedeutet wir brauchen den Code noch für die Variantenartikel. Es wäre schön, wenn uns jemand helfen könnte.

---

<div class="post-metadata">

**Author:** ![sunnet-it](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sunnet-it](https://forum.shopware.com/u/sunnet-it)\
**Post date:** [7. September 2014 um 12:23 UTC](https://forum.shopware.com/t/varianten-als-tabelle/22289/2 "2014-09-07T12:23:43Z")

</div>

Hat denn keiner eine Idee??
