Description Usage Arguments Value
Function calculates a cost for a specified amount of single item including regular price and special price for buying a set amount of items
1 | calculateSingleItemCost(itemName, itemCount, products)
|
itemName |
name of an item for which the price will be calculated |
itemCount |
total amount of item to purchase |
products |
a data.frame contaning all available products with their regular prices and special prices |
Function returns a data.frame with 4 columns ("Item", "Count", "Discount" and "Cost") and 1 or 2 rows (1 row if only regular or special price is used, 2 rows if both of these prices are used)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.