Jump to content

Edit History

b.a.h.m.a.n

b.a.h.m.a.n

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

 

b.a.h.m.a.n

b.a.h.m.a.n

Hey guys,  this code , get Carriers of orders :
 

  $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 order address city name like this , please help

 

×
×
  • Create New...