Hi @athome01!
Thank you for reaching out.
When a user adds two different products to the cart that have different shipping prices, the shipping prices are added to each other, I want it not to be added and only the shipping price with the highest price is left.
I understand that when a customer wants to buy two products with different shipping prices, you want to charge just one shipping price (the highest), correct?
If correct, you can do this in WooCommerce with product shipping classes. This way, you can group products of similar types for shipping.
Check more on how to add shipping classes here: https://woo.com/document/product-shipping-classes/#section-1
Once you group similar products in shipping classes, their shipping costs will be displayed at the checkout. If you want to display only the highest shipping cost, please go to WooCommerce > Settings > Shipping > Shipping Zones
, then select the Shipping Zone you want to edit. Once in there, select the?Edit?option in Flat Rate Shipping, scroll down to the?Calculation Type?section, and select the “Per Order: Charge shipping for the most expensive shipping class” option.
By doing this, it will charge the most expensive shipping class the order has. Check more about Flat Rate Shipping and Shipping Classes here: https://woo.com/document/flat-rate-shipping/#shipping-classes
I hope this helps.
Let us know how it goes for you!