Jump to content

Add State Name (Province) column in Admin Order Page - Añadir columna con provincia en la página de pedidos


david@fundaciomoli.o
 Share

Recommended Posts

Hi!

Actually I'm overriding the AdminOrdersController.php, I want to add a column with the name of the State on the orders in Orders Page of the back Office. I added the city, and the postal code, the email , and the id_state without any problem but when I try to add the Name of the State (province of Spain) this don't seem to be easy. Can anybody give me some light about it? 

---------------

Hola!

Actualmente estoy trabajando sobre el archivo AdminOrdersController.php haciendo un override. Mi intención es crear una columna para las Provincias en la página de pedido del backoffice. He logrado incluir la ciudad, el codigo postal, incluso el email, pero con la provincia solo consigo añadir el codigo interno de prestashop (Id_state). Podria alguien ayudarme a lograr que este código se convienta en el nombre completo de la provincia?

 

Un saludo y muchas gracias!

 

'postcode' => array(
            'title' => $this->trans('Codigo postal', array(), 'Admin.Global')
            ),

'city' => array(
            'title' => $this->trans('Ciudad', array(), 'Admin.Global')  

            ),          
'id_state' => array(
            'title' => $this->trans('Provincia', array(), 'Admin.Global')  

            ),
'' => array(
            'title' => $this->trans('Provincia', array(), 'Admin.Global') 

            ), 

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More