for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dynamic\FoxyStripe\Page;
use SilverStripe\Forms\FieldList;
class DonationProduct extends ProductPage
{
/**
* @var string
*/
private static $singular_name = 'Donation';
$singular_name
private static $plural_name = 'Donations';
$plural_name
* @var array
//private static $allowed_children = [];
* @var bool
private static $can_be_root = true;
$can_be_root
private static $table_name = 'DonationProduct';
$table_name
* @return FieldList
public function getCMSFields()
$fields = parent::getCMSFields();
$fields->removeByName([
'Weight',
'Price',
]);
return $fields;
}