Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProductList V2 introduced a breaking change for accessing Magento Open Source #856

Open
ielali opened this issue Mar 18, 2022 · 0 comments

Comments

@ielali
Copy link

ielali commented Mar 18, 2022

Expected Behavior

Being able to query categories from Magento Open Source

Actual Behavior

Category query adds a staged attribute that is only available to Adobe Commerce. It could be great to have the ability to control this behavior via an Osgi config.
The documentation does state that V2 version are only for Adobe commerce, the problem is if we use V1 versions for productlist and product the UI will be broken.

Reproduce Scenario (including but not limited to)

Try the Venia Store sample with a Magento Open Source instance

Steps to Reproduce

Platform and Version

AEM 6.5.12

Sample Code that illustrates the problem

@PostConstruct protected void initModel() { super.initModel(); if (categoryRetriever != null) { categoryRetriever.extendCategoryQueryWith(c -> c.staged()); categoryRetriever.extendProductQueryWith(p -> p.staged()); } }

Logs taken while reproducing problem

{categoryList(filters:{category_uid:{eq:"MTQ="}}){uid,description,name,image,product_count,meta_description,meta_keywords,meta_title,url_key,url_path,staged}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant