Hi @all,
man soll es nicht tun, aber falls es dochmal jemand braucht:
Wer also im Template etwas berechnen und ggf. runden will:
[{math equation="round((x/y*z*y),2)" x=$product->oxarticles__oxunitquantity->value y=$product->oxarticles__oxlength->value z=$product->oxarticles__oxwidth->value}]
Synthax:
round( ( x / y ), Anzahl der Kommastellen)
und man muß, wie man sieht, x, y, z usw., nachfolgend den jeweiligen Value zuweisen)
mehr dazu in der smarty doku, dort wird die round() Funtion allerdings nicht erörtert.