{"section":"known-issues","requestedLocale":"en","requestedSlug":"flag-only-apply-discount-to-the-cheapest-shipping-option-not-working-as-expected","locale":"en","slug":"flag-only-apply-discount-to-the-cheapest-shipping-option-not-working-as-expected","path":"docs/en/known-issues/Pricing & Promotions/flag-only-apply-discount-to-the-cheapest-shipping-option-not-working-as-expected.md","branch":"main","content":"## Summary\n\n\n\nThe unexpected behavior happens for orders with more than 1 item and for scenarios that at least one of the items have a delivery window that is not shared with other items, only one.\n\nExample: Free shipping promotion with this restriction.\n\nCart:\nItem 1 - Delivery Window A, Delivery Window B\nItem 2 - Delivery Window A, Delivery Window B\nItem 3 - Delivery Window A, Delivery Window B, Delivery Window C.\n\nIn this case the cheapest option for the entire cart would be Delivery Window C even if is not an option for items 1 and 2.\n\nThe expected behavior would be to consider the cheapest options that are actually available for the entire cart.\n\n\n\n## Simulation\n\n\n\n1. Create a free shipping promotion that have a restriction \"Only apply discount to the cheapest shipping option\";\n2. Add to the cart items with common delivery options and a item with a different one that is not applicable for the other items;\n3. Check that the promotion will set a free shipping for all the items except the one with a different delivery option.\n\n\n\n## Workaround\n\n\n\n- Enable the different delivery option for the other items on the cart;\n- Remove the different delivery option for the item that the promotion is not being applied correctly;\n- Remove the restriction flag \"Only apply discount to the cheapest shipping option\"."}