Expand price rules #275
-
How can I expand pricing rules in products list query?
The link / section exist, but no content. https://developers.swell.is/frontend-api/products#list-products-with-prices |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
The price rule field is |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm not sure if I'm looking in the right direction here. I'm trying to offer retail pricing with price latters, and display it in a list of all products. Is it so that the price rules are not avaliable in this call?
this is my response, logged in with a customer that has the group "Retail":
|
Beta Was this translation helpful? Give feedback.
-
What do you think? Is it just me missing something obvious? |
Beta Was this translation helpful? Give feedback.
-
Perfect! Even though I was logged in as user retail (custom storefront) it didn't work, but that $pricing key helped me! Thank you! |
Beta Was this translation helpful? Give feedback.
Storefront pricing logic will remove group-based price rules from the response unless there is an account logged in using that group. You can bypass it if you know the group ID in your frontend, like this: