Adding the fetch method required me to create several examples. One of them is a customer receipt. It shows the customer address, lists items purchased, and calculates the total. It took a bit longer than I thought because I had to add some variable modifiers that PHP already has:
substr (3 functions)
number_format (3 functions)
Dermis can perform some calculations, but it's more particular about the formatting than I'd like: all of the variables and operators must be together; spaces are not tolerated:
{ assign var="fltSubtotal" value=$fltSubtotal+$rcdItem.price*$rcdItem.quantity }
If Smarty is this strict about formatting, I'll leave it there.
So, again, now that I'm finished with the customer receipt example, I'll resume documenting again! :)
Saturday, February 20, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment