Jump to content

how to get order address city name ?


b.a.h.m.a.n

Recommended Posts

Hey guys,  this code , get Carriers of order :
 

  $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,
                ])
        );

i want to add city column to orders list,

how to get city name like this , please help

 

Edited by b.a.h.m.a.n (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...