Skip to content

AddtoCart and removeFromCart are not triggered correctly in the cart page. #48

@sergiozt

Description

@sergiozt

In the cart page when the product is deleted, the Javascript triggers the AddtoCart event, but removeFromCart
is expected to be triggered with the corresponding removed products.

Module version squeezely/magento2-plugin: 2.11.2

Steps to reproduce:

  1. Add multiple products to the cart
  2. Go to the cart page
  3. Click on the remove from cart product link to remove product from the cart

Actual result:
The page is reloaded and the event AddtoCart is triggered.
image

Expected Result
The page is related and the event removeFromCart is triggered with the corresponding removed product data

Tech hint:
The root cause is in that JS: vendor/squeezely/magento2-plugin/view/frontend/web/js/cart-event-extend.js
image

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