magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

Free shipping for physical and virtual products with table rate not working correctly #27861

Closed SteveMcC71 closed 3 years ago

SteveMcC71 commented 4 years ago

Preconditions (*)

  1. Magento 2.3.4
  2. Magento 2.4-develop

Steps to reproduce (*)

  1. Create table rate file image
  2. Stores -> Configuration -> Sales -> Shipping Methods -> Table Rates "Price vs. Destination"
  3. Include Virtual Products in Price Calculation as "No" image
  4. Create a Simple Product with price 40$
  5. Create a Virtual Product with price 20$
  6. Navigate to Storefront and add both products to the Cart

Expected result (*)

  1. If a customer adds a physical product AND a virtual or downloadable product to their cart, the cost of the downloadable or virtual product should not be used to calculate the free shipping threshold (in our example 20$)
  2. Shipping price should 20$ according simple product price 40$

Actual result (*)

  1. If we have both a virtual and physical product in our cart and the total value exceeds our threshold of € 20 the shipping is free because it considers both types of product rather than excluding the virtual product from the calculation as expected. image

  2. With JUST virtual products in the cart the calculation is correct, or with JUST physical products in cart the calculation is correct.

m2-assistant[bot] commented 3 years ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

magento-engcom-team commented 3 years ago

:white_check_mark: Confirmed by @engcom-Delta Thank you for verifying the issue. Based on the provided information internal tickets MC-39292 were created

Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

magento-engcom-team commented 3 years ago

Hi @SteveMcC71.

Thank you for your report and collaboration!

The related internal Jira ticket MC-39292 was closed as Fixed.

The fix will be available with the upcoming 2.4.3 release.

tsfanning21 commented 1 year ago

Hi @SteveMcC71.

Thank you for your report and collaboration!

The related internal Jira ticket MC-39292 was closed as Fixed.

The fix will be available with the upcoming 2.4.3 release.

I do not believe the scope of this fix was correct. It does not include fixes to the Freeshipping carrier in the module-offline-shipping where the free shipping threshold is calculated. This may be intentional as more than likely any change here would require another configuration setting (I.E. ignore virtual items) but it seems incorrect to assume that virtual items would be included in the free shipping threshold check.