You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As of v0.1.0 the pricing fields in Product and ProductVariation types return un-formatted string values, which is counter-productive.
Describe the solution you'd like
The fields should return a formatted string by default, eg "$19.99", "$19.99 - $29.99", ...etc, and when the format: RAW is passed as an argument, a raw float value should be returned, eg 19.99, 29.99...etc.
The dual typing will be implemented using a simple union type. PricingUnion
resolver for the corresponding format: RAW input will require product CPT edit_post cap to resolve.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Product
andProductVariation
types return un-formatted string values, which is counter-productive.Describe the solution you'd like
"$19.99"
,"$19.99 - $29.99"
, ...etc, and when theformat: RAW
is passed as an argument, a raw float value should be returned, eg19.99
,29.99
...etc.PricingUnion
format: RAW
input will requireproduct
CPTedit_post
cap to resolve.The text was updated successfully, but these errors were encountered: