2

After data migration (1.9.1 CE - 2.2.0 CE) I got the below error when I click add to cart button in magento 2

we can't add this item to your shopping cart right now

I did research about this but found no clue...

log says :

The element 'product.info.options' already has a child with alias 'text' {"exception":"[object] (Magento\Framework\Exception\LocalizedException(code: 0): The element 'product.info.options' already has a child with alias 'text' at /var/www/html/lib/internal/Magento/Framework/Data/Structure.php:611)"} []

  • in my case, the custom theme was overriding layout XML file with all the child blocks inside the parent block. I removed all the child blocks from the theme XML. It resolved the issue. Please check if any of custom theme files has redeclaration of child blocks. – Kalyan Chakravarthi V Jun 15 '18 at 9:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.