Hi all,
I'm upgrading the shop module to SS3. https://github.com/burnbright/silverstripe-shop
I'm having an issue when I try to add a simple Decorator to my Product and then try using updateCMSFields... simply put, it doesn't work at all... not even a simple Debug::dump("working") does nothing. Here is my code.
class ProductVariationDecorator extends DataExtension{
/**
* Adds variations specific fields to the CMS.
*/
public function updateCMSFields(FieldList $fields) {
Debug::dump("working");
$fields->addFieldToTab('Root.Variations',new HeaderField("Variation Attribute Types"));
}
...