Skip to content

Shipping costs not calculated correctly with table rates and virtual/physical products in cart #35185

Closed
@OvalMedia

Description

@OvalMedia

Preconditions (*)

  1. Magento 2.4.3-p1

Tables rates is configured to allow 0 shipping costs once the cart total reaches a threshold value. It fails when the cart contains both virtual and physical products even though the configuration "Include Virtual Products in Price Calculation" is set to "No".

Steps to reproduce (*)

  1. Table rates shipping table is set to zero shipping cost once you reach a total amount of 75,- € (63.0252 excl. tax)
    ship-config
  2. Table rates config is set to price vs. destination
  3. "Include Virtual Products in Price Calculation" set to "No"
  4. Create a simple (e.g. 34,- €) and a virtual product (e.g. 100,-€)
  5. Add both products to cart

Expected result (*)

Only the physical product's price should be taken into account when calculating the shipping price. The virtual product's price should be ignored completely.

checkout-expected

Actual result (*)

  1. The virtual product is taken into account
  2. Magento thinks the threshold is reached and sets the shipping cost to 0,-

checkout-actual

The exact same issue has been reported here: #27861
It is supposed to be fixed but it is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ShippingComponent: ShippingIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.3-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions