aem-core-cif-components icon indicating copy to clipboard operation
aem-core-cif-components copied to clipboard

ProductList V2 introduced a breaking change for accessing Magento Open Source

Open ielali opened this issue 3 years ago • 0 comments

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}}

ielali avatar Mar 18 '22 05:03 ielali