function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fields->removeByName("Adjustments");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("AdjustmentsShown", "Adjustments", $this->Adjustments));
     return $fields;
 }
 /**
  * Standard SS Method
  * @return FieldList
  */
 function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fields->removeByName("DebugString");
     $fields->removeByName("SubTotalAmount");
     $fields->removeByName("OrderCoupon");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("SubTotalAmountShown", "sub-total amount", $this->SubTotalAmount));
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("DebugStringShown", "debug string", $this->DebugString));
     return $fields;
 }
 function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $keys = array_keys($this->regionoptions);
     $newArray = array();
     foreach ($keys as $key) {
         $newArray[$key] = $key;
     }
     $fields->replaceField("Region", new DropdownField("Region", "Region", $newArray));
     return $fields;
 }
 function getCMSFields()
 {
     $fields = parent::getCMSFields();
     //debug fields
     $fields->removeByName("TotalWeight");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("TotalWeightShown", "total weight used for calculation", $this->TotalWeight));
     $fields->removeByName("SubTotalAmount");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("SubTotalAmountShown", "sub-total amount used for calculation", $this->SubTotalAmount));
     $fields->removeByName("SerializedCalculationObject");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("SerializedCalculationObjectShown", "debug data", unserialize($this->SerializedCalculationObject)));
     $fields->removeByName("DebugString");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("DebugStringShown", "steps taken", $this->DebugString));
     return $fields;
 }
 /**
  * standard SS method
  * @return FieldList for CMS
  */
 function getCMSFields()
 {
     $fields = parent::getCMSFields();
     $fields->replaceField("Country", new DropDownField("Country", "based on a sale to ", EcommerceCountry::get_country_dropdown()));
     $fields->replaceField("Root.Main", new DropdownField("TaxType", "Tax Type", singleton($this->ClassName)->dbObject('TaxType')->enumValues()));
     $fields->removeByName("DefaultCountry");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("DefaultCountryShown", "Prices are based on sale to", $this->DefaultCountry));
     $fields->removeByName("DefaultRate");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("DefaultRateShown", "Default rate", $this->DefaultRate));
     $fields->removeByName("CurrentRate");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("CurrentRateShown", "Rate for current order", $this->CurrentRate));
     $fields->removeByName("RawTableValue");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("RawTableValueShown", "Raw table value", $this->RawTableValue));
     $fields->removeByName("DebugString");
     $fields->addFieldToTab("Root.Debug", new ReadonlyField("DebugStringShown", "Debug String", $this->DebugString));
     return $fields;
 }
 /**
  * standard SS method
  */
 public function getCMSFields()
 {
     $fields = parent::getCMSFields();
     return $fields;
 }