Skip to content

Shopping cart sales rule not removed when applicable product removed from cart #7388

@JesseEnd

Description

@JesseEnd

A sales rule for free shipping when a product is added to the cart is not removed when that product is removed from the cart.

Preconditions

  1. Magento 2.1.2

Steps to reproduce

  1. Create yes/no product attribute named 'Free Shipping', 'Use for Promo Rule Conditions' enabled
  2. Add Free Shipping attribute to all attribute sets
  3. Enable Free Shipping method with 100,000 minimum order amount (configuration -> sales -> shipping methods)
  4. Create Cart Price Rule 'Free Shipping', no coupon, with the following conditions

If ALL of these conditions are TRUE :

If an item is FOUND  in the cart with ALL  of these conditions true:
    Free Shipping  is  Yes
  1. Add action: Free Shipping 'For shipment with matching items'
  2. Create 2 products: one with free shipping set to no (product 1), and one with free shipping set to yes (product 2)
  3. Add product 1 to cart
  4. Add product 2 to cart
  5. Remove product 2 from cart

Expected result

  1. Free shipping method should appear after product 2 is added to cart
  2. Free shipping method should disappear after product 2 is removed from cart

Actual result

  1. Free shipping method appears after product 2 is added to cart
  2. Free shipping method stays after product 2 is removed from cart
  3. Free shipping method stays after all products removed from cart and even when only product 1 is readded to cart

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions