Hallo zusammen, wir haben das Plugin “Varianten als Tabelle”, dabei haben wir hinter jeden Artikel die Lieferzeit stehen. Leider haben wir nach der Umstellung von Shopware 3 auf 4 das Problem, das bei allen Variantenartikeln immer die gleiche Lieferzeit angezeigt wird und zwar die aus dem Hauptartikel. Es wäre schön wenn uns jemand helfen könnte. Hier der folgender Code: {{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}
| {if $configuratorTableConfig.showNumber} Produktbild | {else} {s name=“configName”}Name{/s} | {/if} {if $configuratorTableConfig.showImage} Artikel | {foreach from=$configuratorTable->getConfiguratorSet()->getGroups() item=cTitle} {/foreach} {/if} {if $configuratorTableConfig.showAttrfield} {foreach from=";"|explode:$configuratorTableConfig.showAttrfield item=field} | Status | {/foreach} {/if} {s name=“configPrice”}Preis{/s} | {s name=“configSelection”}Auswahl{/s} |
{foreach from=$configuratorTableSortedByOrdernumber item=configRow} {if $ctHelper->checkInstock($configRow)} | {if $configuratorTableConfig.showNumber} Art. Nr. {$configRow->getNumber()} {if $configuratorTableConfig.showImage} {assign var=image value=$ctHelper->getVariantImage($configRow)} {/if} {/if} | {foreach from=$ctHelper->getConfiguratorOptions($configRow) item=cOption}
{$cOption[‘name’]}
{$ctHelper->getAttr($configRow, $field)}
| {/foreach} | {include file=‘frontend/plugins/index/delivery_informations.tpl’ sArticle=$sArticle} | getPseudopriceForVariant($configRow)} class=“hasPseudoprice”{/if}> {if $ctHelper->hasBlockPrices($configRow)}
| {se namespace=“frontend/detail/data” name=“DetailDataColumnQuantity”}{/se} | {se namespace=“frontend/detail/data” name=“DetailDataColumnPrice”}{/se} |
{foreach from=$ctHelper->getPricesForVariantSimple($configRow) item=cPrice} | {if $cPrice[‘from’] == 1} {$cPrice[‘from’]} - {$cPrice[‘to’]} | {else} {se namespace=“frontend/detail/data” name=“DetailDataInfoFrom”}{/se} {$cPrice[‘from’]} | {/if} {$cPrice[‘price’]|currency} |
{/foreach}
{else} {if $ctHelper->getPseudopriceForVariant($configRow)} {$ctHelper->getPseudopriceForVariant($configRow)|currency} {/if} {$ctHelper->getPriceForVariant($configRow)|currency} {/if} {if $ctHelper->hasPurchaseUnit($configRow)} {se name=“DetailDataInfoContent” namespace=“frontend/detail/data”}{/se} {(float)$configRow->getPurchaseUnit()} {$configRow->getUnit()->getName()} ({$ctHelper->getPurchaseUnitPrice($configRow)|currency} / {(float)$configRow->getReferenceUnit()} {$configRow->getUnit()->getName()}) {/if} |
{if $configRow->getArticle()->getLastStock() || $configRow->getInstock() < $configRow->getMaxPurchase()}
{assign var=maxQuantity value=$configRow->getInstock()+1}
{else}
{assign var=maxQuantity value=$configRow->getMaxPurchase()+1}
{/if}
{if $maxQuantity == 1}
{assign var=maxQuantity value=$configuratorTableConfig.maxPurchase+1}
{/if}
{if $configRow->getMinPurchase() == 0}
{assign var=minQuantity value=1}
{else}
{assign var=minQuantity value=$configRow->getMinPurchase()}
{/if}
{s name=“DetailBuyActionAdd” namespace=“frontend/detail/buy”}{/s}
|
{/if} {/foreach}
{/block}