Description Usage Arguments Value Examples
amount calculates the value of the object and returns the result.
1 2 3 4 5 6 7 |
obj |
An object. |
The value of a single_item.
The values of all items in an order.
1 2 | ## Not run: amount(an_item) #Calculates the value of a single_item: amount = quantity * unit price * discount(an_item).
## Not run: amount(shopping_cart) #Calculates sum of the values of all items in shopping_cart: sum(amount(each of the items)).
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.