Hallo
ich stehe vor einem Problem in der listitem_line.tpl ich möchte in der Listenansicht gerne den Lagerstatus und Lagerbestand anzeigen.
bekomme es einfach nicht hin Habt ihr da eine Lösung ?
Hallo
ich stehe vor einem Problem in der listitem_line.tpl ich möchte in der Listenansicht gerne den Lagerstatus und Lagerbestand anzeigen.
bekomme es einfach nicht hin Habt ihr da eine Lösung ?
forensuche hilft: lagerbestand anzeigen oder ähnliches.
dann kommt z.b.: http://forum.oxid-esales.com/showthread.php?t=10119 
sowas in der richtung?
ja damit bin ich nicht klar gekommen, wenn ich das eingebaut habe. Hats die Artikelliste nicht mehr richtig angezeigt
wo muss ich diesen Code einbauen
[{elseif $oDetailsProduct->getStockStatus() == 1}]
<span class=“stockFlag lowStock”>[{oxmultilang ident=“DETAILS_LOWSTOCK”}]([{ $oDetailsProduct->oxarticles__oxstock->value }] auf Lager)</span>
[{elseif $oDetailsProduct->getStockStatus() == 0}]
<span class=“stockFlag onStock”>
[{if $oDetailsProduct->oxarticles__oxstocktext->value}]
[{$oDetailsProduct->oxarticles__oxstocktext->value}]
[{elseif $oViewConf->getStockOnDefaultMessage()}]
[{oxmultilang ident=“DETAILS_READYFORSHIPPING”}]
[{/if}]
([{ $oDetailsProduct->oxarticles__oxstock->value }] auf Lager)
</span>
[{/if}]
Hi,
den Code kannst du eigentlich überall in den Artikellisten (/application/views/azure/tpl/widget/product/listitem_xxx.tpl) einbauen.
Allerdings musst du $oDetailsProduct ändern zu $product.
gibts da eine genaue Stelle wo ich den einbauen muss in listitem_line.tpl
kann ich dienen code einbauen und wohin ?
<div class=“additionalInfo clear”>
[{block name=“details_productmain_priceperunit”}]
[{if $oDetailsProduct->getPricePerUnit()}]
<span id=“productPriceUnit”>[{$oDetailsProduct->getPricePerUnit()}] [{$currency->sign}]/[{$oDetailsProduct->getUnitName()}]</span>
[{/if}]
[{/block}]
[{block name="details_productmain_stockstatus"}]
[{if $oDetailsProduct->getStockStatus() == -1}]
<span class="stockFlag notOnStock">
[{if $oDetailsProduct->oxarticles__oxnostocktext->value}]
[{$oDetailsProduct->oxarticles__oxnostocktext->value}]
[{elseif $oViewConf->getStockOffDefaultMessage()}]
[{oxmultilang ident="DETAILS_NOTONSTOCK"}]
[{/if}]
[{if $oDetailsProduct->getDeliveryDate()}]
[{oxmultilang ident="DETAILS_AVAILABLEON"}] [{$oDetailsProduct->getDeliveryDate()}]
[{/if}]
</span>
[{elseif $oDetailsProduct->getStockStatus() == 1}]
<span class="stockFlag lowStock">
[{ $oDetailsProduct->oxarticles__oxstock->value }]
[{oxmultilang ident="DETAILS_LOWSTOCK"}]
</span>
[{elseif $oDetailsProduct->getStockStatus() == 0}]
<span class="stockFlag">
[{ $oDetailsProduct->oxarticles__oxstock->value }]
[{if $oDetailsProduct->oxarticles__oxstocktext->value}]
[{$oDetailsProduct->oxarticles__oxstocktext->value}]
[{elseif $oViewConf->getStockOnDefaultMessage()}]
[{oxmultilang ident="DETAILS_READYFORSHIPPING"}]
[{/if}]
</span>
[{/if}]
[{/block}]
[{block name="details_productmain_deliverytime"}]
[{oxhasrights ident="TOBASKET"}]
[{if $oDetailsProduct->isBuyable() }]
[{include file="page/details/inc/deliverytime.tpl"}]
[{/if}]
[{/oxhasrights}]
[{/block}]
[{block name="details_productmain_weight"}]
[{if $oDetailsProduct->oxarticles__oxweight->value}]
<span id="productWeight">[{oxmultilang ident="DETAILS_ARTWEIGHT"}] [{$oDetailsProduct->oxarticles__oxweight->value}] [{oxmultilang ident="DETAILS_ARTWEIGHTUNIT"}]</span>
[{/if}]
[{/block}]
</div>
habe diesen coade an Zeile 94 eingefügt
[{block name=“details_productmain_stockstatus”}]
[{if$product->getStockStatus() == -1}]
<span class=“stockFlag notOnStock”>
[{if$product->oxarticles__oxnostocktext->value}]
[{$product->oxarticles__oxnostocktext->value}]
[{elseif $oViewConf->getStockOffDefaultMessage()}]
[{oxmultilang ident=“DETAILS_NOTONSTOCK”}]
[{/if}]
[{if$product->getDeliveryDate()}]
[{oxmultilang ident=“DETAILS_AVAILABLEON”}] [{$oDetailsProduct->getDeliveryDate()}]
[{/if}]
</span>
[{elseif$product->getStockStatus() == 1}]
<span class=“stockFlag lowStock”>
[{$product->oxarticles__oxstock->value }]
[{oxmultilang ident=“DETAILS_LOWSTOCK”}]
</span>
[{elseif$product->getStockStatus() == 0}]
<span class=“stockFlag”>
[{$product->oxarticles__oxstock->value }]
[{if$product->oxarticles__oxstocktext->value}]
[{$product->oxarticles__oxstocktext->value}]
[{elseif $oViewConf->getStockOnDefaultMessage()}]
[{oxmultilang ident=“DETAILS_READYFORSHIPPING”}]
[{/if}]
</span>
[{/if}]
[{/block}]
dann baut sich die Seite nicht mehr richtig auf
[QUOTE=derfehler;129770]
[{if$product->oxarticles__oxstocktext->value}]
dann baut sich die Seite nicht mehr richtig auf[/QUOTE]
Das glaube ich gerne, auf ein if sollte auch eine Leerstelle folgen.
mit diesem coade gehts fast habe nur das Problem das der Grüne Punkt hinter der Schrift liegt
[{block name=“details_productmain_stockstatus”}]
[{if $product->getStockStatus() == -1}]
<span class=“stockFlag notOnStock”>
[{if $product->oxarticles__oxnostocktext->value}]
[{$product->oxarticles__oxnostocktext->value}]
[{elseif $oViewConf->getStockOffDefaultMessage()}]
[{oxmultilang ident=“DETAILS_NOTONSTOCK”}]
[{/if}]
[{if $product->getDeliveryDate()}]
[{oxmultilang ident=“DETAILS_AVAILABLEON”}] [{$oDetailsProduct->getDeliveryDate()}]
[{/if}]
</span>
[{elseif $product->getStockStatus() == 1}]
<span class=“stockFlag lowStock”>
[{$product->oxarticles__oxstock->value }]
[{oxmultilang ident=“DETAILS_LOWSTOCK”}]
</span>
[{elseif $product->getStockStatus() == 0}]
<span class=“stockFlag”>
[{$product->oxarticles__oxstock->value }]
[{if $product->oxarticles__oxstocktext->value}]
[{$product->oxarticles__oxstocktext->value}]
[{elseif $oViewConf->getStockOnDefaultMessage()}]
[{oxmultilang ident=“DETAILS_READYFORSHIPPING”}]
[{/if}]
</span>
[{/if}]
[{/block}]
Hi,
du musst nicht jedes Mal den kompletten Code posten. Die Lage des farbigen Punktes verändert man mit Hilfe von CSS.
Poste mal bitte einen Link zu deinem Shop, sonst kann man da wenig dazu sagen.
der shop ist nur für den Tiket verkauf der Theatergruppe
der shop ist noch im testbetieb
Guten Morgen,
Datei \out\azure\src\css\oxid.css, Zeile 3610:
.stockFlag {
background: url(../../img/stockstatus.png) no-repeat 7px -46px;
padding: 0 20px;
}
Vielen dank hat geklappt
zu meinem Verständnis was bedeutet das genau
padding: 0 20px;