Alan · Product price
Alan · Product price · commerce.price. Üretim yöntemi · Örnek
commerce.price
Üretici ayarları
Sonuçları görmek için veri oluştur.
Parametreler & Örnek
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 ''.
Örnek
"668.35"Test ortamında sentetik veri kullan.