Magento integration - Add to Cart functionality

Avatar

Avatar

saukaush

Avatar

saukaush

saukaush

16-12-2020

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

shelly-goel

MVP

Avatar

shelly-goel

MVP

shelly-goel
MVP

16-12-2020

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