Guten Tag,
im iso_collection_review Template müsste ich bei einem Total Preis von mehr als 50 etwas bestimmtes ausgeben. Leider bekomme ich die Variable nicht ohne Währungs Symbol usw ausgeliefert.
PHP-Code:
echo $this->total;
"total" => "<span class="currency">€</span> 40,00"
wie komme ich an den Preis im raw format?
mit
PHP-Code:
//$this->dumpTemplateVars();
sehe ich, dass dieser hier verfügbar ist - komme jedoch nicht dran.
PHP-Code:
#arrRelated: array:2 [
"pid" => Isotope\Model\ProductCollection\Order {#921
#arrCache: array:5 [
"subtotal" => 40
"requiresShipping" => false
"total" => 40
"taxFreeSubtotal" => 40
"taxFreeTotal" => 40.0
]
oder hier:
#arrData: array:30 [
"id" => "27584"
"tstamp" => 1652717445
"type" => "order"
"member" => "0"
"locked" => null
"store_id" => "0"
"settings" => null
"checkout_info" => null
"payment_data" => null
"shipping_data" => null
"source_collection_id" => "27314"
"document_number" => ""
"uniqid" => "628263a4bc6837.88494221"
"order_status" => "0"
"date_paid" => null
"date_shipped" => null
"config_id" => "1"
"payment_id" => "3"
"shipping_id" => "0"
"billing_address_id" => "17057"
"shipping_address_id" => "17057"
"subtotal" => 40
"tax_free_subtotal" => 40
"total" => 40
"tax_free_total" => 40.0
"currency" => "EUR"
"language" => ""
"notes" => null
"coupons" => null
]
Lesezeichen