Victor
Victor

Reputation: 57

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

Upvotes: 0

Views: 125

Answers (1)

Victor Vasiloi
Victor Vasiloi

Reputation: 517

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.

Upvotes: 1

Related Questions