Feld · Product price
Feld · Product price · commerce.price. Generatormethode · Beispiel
commerce.price
Generatoreinstellungen
Erzeuge Daten, um Ergebnisse zu sehen.
Parameter & Beispiel
Generates a price between min and max (inclusive).
commerce.price(options?: { min?, max?, dec?, symbol? })- options
- An options object.
- options.min
- The minimum price. Defaults to 1.
- options.max
- The maximum price. Defaults to 1000.
- options.dec
- The number of decimal places. Defaults to 2.
- options.symbol
- The currency value to use. Defaults to ''.
Beispiel
"668.35"Verwende synthetische Daten in der Testumgebung.