<p>Craft Commerce 4.0.2 trying to EDIT shipping rules and getting this kind of error :</p>
<p><code>Cannot assign string to property craft\commerce\models\ShippingRule::$maxTotal of type float</code></p>
<p><a href="https://i.sstatic.net/lPtRO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/lPtRO.png" alt="enter image description here" /></a></p>
<p>Anyone getting this kind of error ? Since we're just before going live, I will remove all rules and re-enter them, but that's really unfortunate.</p>

CC BY-SA 4.0
2022-06-08T03:33:10.177Z
Yes, it's bug on commerce, but looks like they have a fix but not yet release it.
aodihis
CC BY-SA 4.0
2022-06-08T11:44:32.987Z
Thank you for the answer. We'll be waiting on this fix ! In the meantime, I managed to enter data and updating directly in the database.
Sylvain Tremblay
<plugin-craftcommerce><shipping><plugin-craftcommerce4>
Commerce CP Shipping Errors
# Commerce CP Shipping Errors

(Asked by: username_0 on 2022-06-07)

Craft Commerce 4.0.2 trying to EDIT shipping rules and getting this kind of error :

`Cannot assign string to property craft\commerce\models\ShippingRule::$maxTotal of type float`

[![enter image description here](https://i.sstatic.net/lPtRO.png)](https://i.sstatic.net/lPtRO.png)

Anyone getting this kind of error ? Since we're just before going live, I will remove all rules and re-enter them, but that's really unfortunate.

**Tags:** plugin-craftcommerce, shipping, plugin-craftcommerce4
> **Comments:**
> **username_1**: Yes, it's bug on commerce, but looks like they have a fix but not yet release it.  
> **username_0**: Thank you for the answer. We'll be waiting on this fix ! In the meantime, I managed to enter data and updating directly in the database.  

---

## 0 answers

