/**
  * standard SS method
  *
  */
 function updateCMSFields(FieldSet &$fields)
 {
     $fields->addFieldToTab('Root.Content', new Tab(ProductVariation::get_plural_name(), new HeaderField(ProductVariation::get_plural_name() . " for {$this->owner->Title}"), $this->owner->getVariationsTable(), new CreateEcommerceVariations_Field('VariationMaker', '', $this->owner->ID)));
     if ($this->owner->Variations() && $this->owner->Variations()->count()) {
         $fields->addFieldToTab('Root.Content.Main', new LabelField('variationspriceinstructions', 'Price - Because you have one or more variations, you can vary the price in the "' . ProductVariation::get_plural_name() . '" tab. You set the default price here.'), 'Price');
         $fields->addFieldToTab('Root.Content.Details', new LiteralField('UpdateVariationsPrices', "<p class=\"message good\">Click <a href=\"{$this->owner->Link('updatevariationpricefromproduct')}\">here</a> to update all the variations with the price above.</p>"), 'InternalItemID');
     }
 }
 function ProductVariationGetPluralName()
 {
     return Convert::raw2att(ProductVariation::get_plural_name());
 }