How to calculate free shipping for physical products only?

For free shipment calculation by purchase-amount, we only calculate by “physical products” while “non-physical product” should not be counted even if customer purchases together.

Example:

Using Parcelify Apps for transportation fee

Free shipment for over $40

Physical product: $30

Non-Physical product: $20

The system says, “free shipment as the total purchase is $50”.

Are there any solutions?