diff --git a/src/Extensions/Extension.php b/src/Extensions/Extension.php index 4844fae..9c1296d 100644 --- a/src/Extensions/Extension.php +++ b/src/Extensions/Extension.php @@ -218,6 +218,16 @@ public function updateSettingsFields(FieldList $fields) */ public function updateCMSFields(FieldList $fields) { + $fields->removeByName("RemoveFromShoppingFeed"); + $fields->removeByName("Condition"); + $fields->removeByName("Availability"); + $fields->removeByName("Brand"); + $fields->removeByName("MPN"); + $fields->removeByName("GTIN"); + $fields->removeByName('GoogleProductCategoryID'); + $fields->removeByName("ShoppingPrimaryImage"); + $fields->removeByName("ShoppingAdditionalImage"); + if (!$this->owner->hasCMSSettingsFields()) { $tabset = $fields->findOrMakeTab('Root.Settings');