SilverShop\Discounts\Model\Discount::setCastedField
We have to tap in here to correct "50" to "0.5" for the percent field. This is a common user error and it's nice to just fix it for them.
Signature
public function setCastedField(string
$fieldName,
mixed
$value )
Parameters
$fieldName
— string- Name of the field
$value
— mixed- New field value
Returns
- DataObject
- $this