b.a.h.m.a.n Posted February 6, 2022 Share Posted February 6, 2022 Hello , i want to add city column to orders list page in backoffice, In this sample code i can get carrier , how to get city in choice_provider?🙏 $carrierByReferenceChoiceProvider = $this->get('prestashop.core.form.choice_provider.carrier_by_reference_id'); $definition->getFilters()->add( (new PrestaShop\PrestaShop\Core\Grid\Filter\Filter('carrier_reference', Symfony\Component\Form\Extension\Core\Type\ChoiceType::class)) ->setAssociatedColumn('carrier_reference') ->setTypeOptions([ 'required' => false, 'choices' => $carrierByReferenceChoiceProvider->getChoices(), 'translation_domain' => false, ]) ); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now