Skip to content

item_variant missing on add to cart of configurable product #282

@luukfiets

Description

@luukfiets

Hi @jissereitsma,

We're using the Yireo module for one of our clients and I've noticed that the item_variant parameter is missing on the add_to_cart event even though it's mentioned in the code (here). Example of the add to cart event:

Image

Also, I've noticed that the item_id in the add_to_cart event for a configurable product is the SKU of the child product instead of the parent / configurable itself. Usually it's recommended to use the parent SKU in the item_id as that's the consistent one. The item_variant is only available for some specific events like add_to_cart and in the checkout events as only then you know the exact variant that was chosen. In those cases, you want item_id to always be the parent ID and item_variant to contain the variant SKU.

I'm not a Magento developer myself, but if there is anything I can do to help you with this, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions