Topics
Getting started
Dynamic templating
Scripting

Commerce

Commerce namespace contains methods that generate strings related to the commerce entity.

Template definitions

{{commerce.color()}} - Generates randomly Color Name, e.g. "lime".


{{commerce.department()}} - Generates randomly the Department, e.g. "Tools".


{{commerce.price()}} - Generates randomly the Price value, e.g. "883.00".


{{commerce.product()}} - Generates randomly the Product name, e.g. "Chips".


{{commerce.productAdjective()}} - Generates randomly the Product Adjective, e.g. "Practical".


{{commerce.productMaterial()}} - Generates randomly the Product Material, e.g. "Cotton".


{{commerce.productName()}} - Generates randomly the Product Name, e.g. "Intelligent Metal Fish".


Example

The example of template usage:

{
  "someCommerce": {
    "color": "{{commerce.color()}}",
    "department": "{{commerce.department()}}",
    "price": "{{commerce.price()}}",
    "product": "{{commerce.product()}}",
    "productAdjective": "{{commerce.productAdjective()}}",
    "productMaterial": "{{commerce.productMaterial()}}",
    "productName": "{{commerce.productName()}}"
  }
}