Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Explain priorPrice (#18572)

Lukasz Ostrowskiaaabbc47e9a9
diff --git a/saleor/graphql/product/types/channels.py b/saleor/graphql/product/types/channels.py
index 2a6e1261bf..3a769b2eef 100644
--- a/saleor/graphql/product/types/channels.py
+++ b/saleor/graphql/product/types/channels.py
@@ -322,7 +322,9 @@ class ProductVariantChannelListing(
cost_price = graphene.Field(Money, description="Cost price of the variant.")
prior_price = graphene.Field(
Money,
- description="Prior price of the variant used for discount calculations."
+ description="Previous price of the variant in channel. Useful for providing "
+ "promotion information required by customer protection laws such as EU Omnibus "
+ "directive.\n\n Warning: This field is not updated automatically. Use Channel Listings mutation to update it manually."
+ ADDED_IN_321,
)
margin = PermissionsField(
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 60b43eb1eb..a77e8031d9 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -7754,7 +7754,9 @@ type ProductVariantChannelListing implements Node @doc(category: "Products") {
costPrice: Money
"""
- Prior price of the variant used for discount calculations.
+ Previous price of the variant in channel. Useful for providing promotion information required by customer protection laws such as EU Omnibus directive.
+
+ Warning: This field is not updated automatically. Use Channel Listings mutation to update it manually.
Added in Saleor 3.21.
"""