Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Warenkorb: Bild der Verpackung anzeigen (Fehler in Schritt 4)

$
0
0
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 ("Warenkorbübersicht") funktioniert's einwandfrei, im vierten Schritt ("Überprüfen & absenden") bekomme ich folgende Fehlermeldung:

Quote:

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):

Code:

// 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!

Viewing all articles
Browse latest Browse all 6951

Trending Articles