wie hast du das mit Dropper denn gemacht? Was genau hast du angestellt um dir eine "Entwicklungsumgebung zu schaffen"? Bei uns gehts hier auch um den Einsatz via Dropper.
Im Dropper ein plain anlegen.
Smarty evaluieren -> ja
Anzeige -> #content -> anstellen
Seitentyp -> Warenkorb
Kundengruppe -> Test (ist von Vorteil so eine Testkundengruppe einzurichten, wenn noch nicht geschehen)
Testen bis der Arzt kommt^^
Gebe ich z.B. folgenden Code ein:
{foreach from=$Warenkorb->PositionenArr item="wkPos"}
{$wkPos->Artikel->cMerkmalAssoc_arr|dump}
{/foreach}
{$Warenkorb->PositionenArr|dump}
sieht es im WK so aus:
So kann ich einen oder mehrere entsprechende Artikel auswählen und experimentieren.
Gebraucht hab ich das z.B. exessiv für die Grundpreisdarstellung für den Googleexport ins Merchant-Center. So konnte ich mit
ml, l, kg und g die entsprechende Ausgabe für den Export "basteln".
Wen es interessiert:
<tab>{if $Artikel->fArtikelgewicht == "1" OR $Artikel->fArtikelgewicht == "0.1" OR $Artikel->cLocalizedVPE[0] == ""} {elseif $Artikel->cVPEEinheit == "l"}{$Artikel->fVPEWert}l {elseif $Artikel->cVPEEinheit == "100 ml"}{math equation="x/y" x=$Artikel->fVPEWert y="0.01"}ml {elseif $Artikel->fVPEWert <= "2.5" AND $Artikel->fArtikelgewicht <= "0.25"}{math equation="x/y" x=$Artikel->fVPEWert y="0.01"}g {else}{$Artikel->fVPEWert}kg{/if}<tab>{if $Artikel->fArtikelgewicht == "1" OR $Artikel->fArtikelgewicht == "0.1" OR $Artikel->cLocalizedVPE[0] == ""} {elseif $Artikel->cVPEEinheit == "l"}1l {elseif $Artikel->cVPEEinheit == "100 ml"}100ml {elseif $Artikel->fArtikelgewicht <= "0.250"}100g {else}1kg{/if}<tab>
Im Dropper muss natürlich die Schleife davor und dementsprechend die Artikel benannt werden.
{foreach from=$Warenkorb->PositionenArr item="wkPos"}
{if $wkPos->Artikel->fArtikelgewicht == "1" OR $wkPos->Artikel->fArtikelgewicht == "0.1" OR $wkPos->Artikel->cLocalizedVPE[0] == ""}
{elseif $wkPos->Artikel->cVPEEinheit == "100 ml"}{math equation="x/y" x=$wkPos->Artikel->fVPEWert y="0.01"}ml
{elseif $wkPos->Artikel->cVPEEinheit == "l"} {$wkPos->Artikel->fVPEWert}l
{elseif $wkPos->Artikel->fVPEWert <= "2.5" AND $wkPos->Artikel->fArtikelgewicht <= "0.25"}{math equation="x/y" x=$wkPos->Artikel->fVPEWert y="0.01"}g
{else}{$wkPos->Artikel->fVPEWert}kg
{/if}
<tab>
{if $wkPos->Artikel->fArtikelgewicht == "1" OR $wkPos->Artikel->fArtikelgewicht == "0.1" OR $wkPos->Artikel->cLocalizedVPE[0] == ""}
{elseif $wkPos->Artikel->cVPEEinheit == "100 ml"}100ml
{elseif $wkPos->Artikel->cVPEEinheit == "l"}1l
{elseif $wkPos->Artikel->fArtikelgewicht <= "0.250"}100g
{else}1kg
{/if}
{/foreach}