コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

Magento integration - Add to Cart functionality

Avatar

Level 2

Hi,

 

I have integrated my Site with Magento and able to see my products and different variants. But the Add to Cart is disabled.

I am using the code from aem-core-cif-components. Upon debug i can see variants in variantSelector.js are blank. 

this._state.variantData = JSON.parse(this._element.dataset.variants);

element is getting fetched from 

config.element

 All variants are getting displayed on html with correct values. 

Please let me know what can be issue with variants not getting populated in js file.

I am using cif-connector 0.7 version.

 

Thanks

1 返信

Avatar

Employee Advisor

Hi @saukaush 

It might be something trivial like you might have to select some specific product attributes like color, size, etc. before 'Add to bag' would be enabled. Please confirm if that's the case, otherwise please share the some screenshots of the product page and console log, etc to better assist.

Thanks