필드 · Product price

필드 · Product price · commerce.price. 생성 메서드 · 예시

commerce.price

생성 설정

데이터를 생성하면 결과가 표시됩니다.

매개변수 & 예시

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 ''.

예시

"668.35"

테스트 환경에서 합성 데이터를 사용하세요.

관련 생성기

시나리오 탐색