Source of file EcommerceRewardsRewardDecorator.php
Size: 0,571 Bytes - Last Modified: 2021-12-23T10:41:13+00:00
/var/www/docs.ssmods.com/process/src/code/model/EcommerceRewardsRewardDecorator.php
123456789101112131415161718192021 | <?php class EcommerceRewardsRewardDecorator extends DataObjectDecorator { public function extraStatics() { return array( 'db' => array( 'PointsPrice' => 'Currency', ), ); } public function updateCMSFields(&$fields) { $fields->addFieldToTab('Root.Content.RewardPoints', new NumericField('PointsPrice', 'The number of reward points it costs to purchase this product as a reward. Only products that have a non-zero value will be available as rewards.')); return $fields; } } |