Magento integration - Add to Cart functionality | Community
Skip to main content
December 16, 2020
Question

Magento integration - Add to Cart functionality

  • December 16, 2020
  • 1 reply
  • 978 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

shelly-goel
Adobe Employee
Adobe Employee
December 17, 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