Jump to content

Add column in order list (PS 1.7)


quentino.cz
 Share

Recommended Posts

Hi, can anybody help me to add a carrier name column to the orders list? I could figure it out with some help in PS 1.6, but the new version of presta seems to have it coded differently..

Thanks!!

 

 

(ALSO)

If anybody knows answer to the "not saving properly issue" I posted here:

https://www.prestashop.com/forums/topic/623694-ps-17-not-saving-properly/

I would be really grateful for help! :)

Share this post


Link to post
Share on other sites

  • 4 weeks later...

I am also looking for an answer to this question, it would use the Override code until 1.6 this model worked but with 1.7 no longer works, the following code is for ProductsController but the principle is the same

 

 

 

<?php
class AdminProductsController extends AdminProductsControllerCore
{
 
public function __construct()
{
 
parent::__construct();
 
// Join the table product supplier in order to get product supplier reference ( Only Work for products without combinations )
$this->_join .= ' LEFT JOIN '._DB_PREFIX_.'product_supplier ps ON ( a.id_product = ps.id_product AND ps.id_product_attribute = 0 )';
 
//Add new field supplier reference in field list
$this->fields_list['product_supplier_reference'] = array(
'title' => $this->l('Supplier Reference'),
'align' => 'left',
'filter_key' => 'ps!product_supplier_reference',
'width' => 80
);
}
}
Edited by alltheshop (see edit history)

Share this post


Link to post
Share on other sites

  • 3 years later...
  • 5 weeks later...

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