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
After configuring several active catalog promotions with taxon scopes, I aim to display the list of applied promotions for a specific product taxon.
In the latest release (v1.13.0), the Shop API (/api/v2/shop) offers an endpoint to retrieve a ProductTaxon resource. Here's an example usage along with a sample response:
I am wondering if it would be possible to include an array of channels and their respective applied promotions for a specific taxon. So we retrieve the catalog promotion jsonlds
The current alternative is to retrieve all the catalog promotions to iterate over them, checking their configuration scopes and filtering those ones which apply for the targeted product taxon.
Additional context
Could the inclusion of "appliedPromotions" in the ProductTaxon resource be considered?
I understand that this feature request may not currently be of high priority. Would you be open to accepting a pull request from me to implement this feature?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
GSadee
added
Feature
New feature proposals.
API
APIs related issues and PRs.
RFC
Discussions about potential changes or new features.
labels
May 17, 2024
Could you describe your use case?
From my perspective, I am mainly wondering why on a taxon product and not simply on taxon, where it would probably make more sense. 🤔 Nevertheless, I have doubts as to whether such functionality is needed by default in Sylius, or whether it is something you can add in your end application. Especially, as catalog promotions are applied directly to variants and not to products or taxons.
Describe the proposed need and solution
After configuring several active catalog promotions with taxon scopes, I aim to display the list of applied promotions for a specific product taxon.
In the latest release (v1.13.0), the Shop API (
/api/v2/shop
) offers an endpoint to retrieve a ProductTaxon resource. Here's an example usage along with a sample response:I am wondering if it would be possible to include an array of channels and their respective applied promotions for a specific taxon. So we retrieve the catalog promotion jsonlds
Describe alternatives you've considered
The current alternative is to retrieve all the catalog promotions to iterate over them, checking their configuration scopes and filtering those ones which apply for the targeted product taxon.
Additional context
Could the inclusion of "appliedPromotions" in the ProductTaxon resource be considered?
I understand that this feature request may not currently be of high priority. Would you be open to accepting a pull request from me to implement this feature?
Thank you in advance.
The text was updated successfully, but these errors were encountered: