Function ShopPrice
-
ShopPrice(
__namedParameters: {
amount: number;
formatPrice: (amount: number) => string;
shippingHref?: string;
shippingLabel?: string;
taxLabel?: string;
unitPrice?: string;
},
): ElementParameters
- __namedParameters: {
amount: number;
formatPrice: (amount: number) => string;
shippingHref?: string;
shippingLabel?: string;
taxLabel?: string;
unitPrice?: string;
}-
amount: number
Amount in integer cents.
-
formatPrice: (amount: number) => string
Format an integer-cent amount using the host locale and currency.
-
OptionalshippingHref?: stringHost shipping information URL. Optional; omitted unless supplied by the host or backend.
-
OptionalshippingLabel?: stringHost shipping information link label. Optional; omitted unless supplied by the host or backend.
-
OptionaltaxLabel?: stringHost tax information. Optional; omitted unless supplied by the host or backend.
-
OptionalunitPrice?: stringHost-formatted unit price. Optional; omitted unless supplied by the host or backend.
-
Returns Element
- __namedParameters: {
Render a host-formatted cent amount with optional unit price and legal labels.