Source of file ZonedShippingRate.php
Size: 1,140 Bytes - Last Modified: 2021-12-23T10:25:09+00:00
/var/www/docs.ssmods.com/process/src/src/Model/ZonedShippingRate.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 | <?php namespace SilverShop\Shipping\Model; use SilverStripe\ORM\DataObject; class ZonedShippingRate extends DataObject { private static $db = [ "WeightMin" => "Decimal", "WeightMax" => "Decimal", "VolumeMin" => "Decimal", "VolumeMax" => "Decimal", "ValueMin" => "Currency", "ValueMax" => "Currency", "QuantityMin" => "Int", "QuantityMax" => "Int", "Rate" => "Currency" ]; private static $has_one = [ 'Zone' => Zone::class, 'ZonedShippingMethod' => ZonedShippingMethod::class ]; private static $summary_fields = [ 'Zone.Name' => 'Zone', 'WeightMin', 'WeightMax', 'VolumeMin', 'VolumeMax', 'ValueMin', 'ValueMax', 'QuantityMin', 'QuantityMax', 'Rate' ]; private static $default_sort = "\"Rate\" ASC"; private static $table_name = 'SilverShop_ZonedShippingRate'; public function getCMSFields() { $fields = parent::getCMSFields(); $fields->removeByName('ZonedShippingMethodID'); return $fields; } } |