1 <?php
2
3 4 5 6 7 8
9 class FixedShippingMethod extends ShippingMethod {
10
11 static $db = array(
12 "HandlingFee" => "CatalogPrice",
13 );
14
15 16 17 18 19 20 21 22
23 function calculateRate(ShippingPackage $package, Address $address){
24
25 $this->CalculatedRate = $this->HandlingFee;
26 return $this->CalculatedRate;
27 }
28 }
29
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the
Silverstripe Forums to ask development related questions.
-