Combine no class shipping with class shipping

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com

I have the following case which I’m trying to solve. Most of my items I’m selling on my WordPress site are no class specified and I use the following formula to calculate shipping: 10 + ( 9.99 * [qty] ) and another class specified shipping with the following formula: 20 + ( 19.99 * [qty] )
So, all works as it should: the no specified class has shipping 19.99 for one item, additional 9.99 for another item and so on. Same for the specified class. One item is 39.99 and every additional item is 19.99.

The problem comes when people add one item with no class specified shipping and another with class specified in the cart. The shipping cost would be: 59.98 which I want to tweak to 49.98. It should take into account the most expensive shipping (in this case the shipping with class specified) and reduce the other to 9.99 because it has already one item added into the cart, so it shouldn’t add 10 to overall shipping cost. Is there any simple way to do this? I guess it shouldn’t be hard, just not sure where to start or maybe there’s already a plugin for this?

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com