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
Currently a ProductVariant has a price property with a single integer value.
It may be desirable to allow a ProductVariant to have multiple price values, one for each supported currency.
One way to achieve this would be to use Channels (see Channels #12) with a separate Channel representing each currency zone.
Another approach is like that of Moltin products where the price field is an array of currency-value objects.
In practice, both of the above imply a one-to-many relationship of ProductVariant -> Price objects, in which case we may as well opt for a Channel-based approach, since Channels also unlock other desirable features.
The text was updated successfully, but these errors were encountered:
Currently a ProductVariant has a
price
property with a single integer value.It may be desirable to allow a ProductVariant to have multiple price values, one for each supported currency.
price
field is an array of currency-value objects.In practice, both of the above imply a one-to-many relationship of ProductVariant -> Price objects, in which case we may as well opt for a Channel-based approach, since Channels also unlock other desirable features.
The text was updated successfully, but these errors were encountered: