Illegal use of read-only property

You tried to assign a value to a property of a product object, but the product has defined that property to be read-only. This means that you can retrieve but cannot assign that property's value.

Remove the assignment statement.