Hallo,
ich möchte im Warenkorb die Verpackung als Bild anzeigen. Per Default steht dort “hinzufügen” bzw. der Name der gewählten Verpackung.
Im ersten Schritt des Checkouts I[/I] funktioniert’s einwandfrei, im vierten Schritt (“Überprüfen & absenden”) bekomme ich folgende Fehlermeldung:
oxSystemComponentException-oxException […] : [0]: Function ‘getWrappingList’ does not exist or is not accessible!
D.h. also, dass die Methode $oView->getWrappingList() im vierten Schritt nicht verfügbar ist. Kann mir jemand von Euch sagen, weshalb das so ist und wie ihr das Verpackungsbild ausspielen würdet?
Hier mein Code (Fehlermeldung kommt im Else-Zweig):
// Datei: application/views/$templatename/tpl/page/checkout/inc/basketcontents.tpl
[{if $editable }]
[{* Verpackung wird als Bild angezeigt. (Klickbar) *}]
<a class="wrappingTrigger" rel="nofollow" href="#" title="[{oxmultilang ident="ADD"}]">
[{foreach from=$oView->getWrappingList() item=wrapping name=Wraps}]
[{if $wrapping->oxwrapping__oxname->value == $oWrap->oxwrapping__oxname->value}]
<img src="[{$wrapping->getPictureUrl()}]" alt="[{$wrapping->oxwrapping__oxname->value}]">
[{/if}]
[{/foreach}]
</a>
[{else}]
[{* Verpackung wird als Bild angezeigt. (Nicht klickbar) *}]
[{foreach from=$oView->getWrappingList() item=wrapping name=Wraps}]
[{if $wrapping->oxwrapping__oxname->value == $oWrap->oxwrapping__oxname->value}]
<img src="[{$wrapping->getPictureUrl()}]" alt="[{$wrapping->oxwrapping__oxname->value}]">
[{/if}]
[{/foreach}]
[{/if}]
Vielen Dank im Voraus!