Nosto / nosto-magento

Magento extension for Nosto
https://marketplace.magento.com/nosto-nosto-tagging.html
Open Software License 3.0
27 stars 24 forks source link

Add Multiple Products To Cart Function Does Not Use Configurable Parent Product #528

Open supercid opened 5 years ago

supercid commented 5 years ago

Magento version(s) used: 1.9 Extension version(s) affected: 3.11.0 and below

Description
When adding multiple products to cart with

Nosto.addMultipleProductsToCart([
        {'productId' : '425', 'skuId' : '310'},
        {'productId' : '425', 'skuId' : '314'},
        {'productId' : '425', 'skuId' : '312'},
        {'productId' : '425', 'skuId' : '313'},
    ], this);

Configurable products are not correctly added, having no images in some setups.

How to reproduce
Use the snippet above and observe that the SKU is added directly instead of the parent product with the super attributes.

Possible Solution
Call addSkuToCart multiple times to add all products.

Additional context
N/A