kann mir jemand die Syntax mitteilen, wie ich aus einer template variable mit get_template_vars oder _tpl_vars
auf die smarty variable dprice aus dem array {$oxcmp_basket} zugreiffen kann?
Beispiel: $this->_tpl_vars[$oxcmp_basket];
liefert mir logischerweise nur das Array.
Ich muss leider in php arbeiten, da ich einen header redirect mit übergabe der variable benötige, sonst würde ich die smarty variable direkt ansprechen.
Hier der komplette code:
[{ if $payment->oxpayments__oxid == “paypal” }]
[{php}]
$totalAmount = $this->_tpl_vars[‘dprice’]; // Hier ist der Fehler !!!
$location = “/paypal/ReviewOrder.php?paymentAmount=” . $totalAmount;
header(“Location: $location”);
[{/php}]
[{/if}]
Fatal error: Cannot use object of type oxBasket as array in /var/www/virtual/wakemaster.de/dev/htdocs/tmp/033bd614ce4655e28f8ab33747d1e49d^%%57^575^575AC582%%order.tpl.php on line 7
Fatal error: Cannot use object of type oxBasket as array in /var/www/virtual/wakemaster.de/dev/htdocs/tmp/033bd614ce4655e28f8ab33747d1e49d^%%57^575^575AC582%%order.tpl.php on line 7