symfonysyliussylius-resourcesylius-1.3

Sylius add new zone scope


I'm using the framework Sylius v1.4.7, I want to add a new scope in the choice list in zone form but I don't know how I can do that. Could you help me please ?

I override this class ZoneChoiceType but in vain, I still have the default values in scope select input


Solution

  • Here's a guide for form customization. The right type to customize is Sylius\Bundle\AddressingBundle\Form\Type\ZoneTypeChoiceType, or Sylius\Bundle\AddressingBundle\Form\Type\ZoneType

    You can also use configuration to add a new scope.