Jump to content

[SOLVED] Add column in AdminCarts.php


r.guillaume

Recommended Posts

Hi,

I had add a column in the table ps_cart of my DB and i want show the value in the datas table of adminCart (client > cart)
The problem is that when i add a line like "myfield", Head of column "customer" is changed by "myfield" but values stay of customers...

$this->fieldsDisplay = array(
       'id_cart' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
       'customer' => array('title' => $this->l('Customer'), 'width' => 80, 'filter_key' => 'c!lastname'),

       'Myfiled' => array('title' => $this->l('myfiled'), 'width' => 80), //here my new fild

       'total' => array('title' => $this->l('Total'), 'callback' => 'getTotalCart', 'orderby' => false, 'search' => false, 'width' => 50, 'align' => 'right', 'prefix' => '', 'suffix' => '', 'currency' => true),
       'carrier' => array('title' => $this->l('Carrier'), 'width' => 25, 'align' => 'center', 'callback' => 'replaceZeroByShopName'),
       'date_add' => array('title' => $this->l('Date'), 'width' => 90, 'align' => 'right', 'type' => 'datetime', 'filter_key' => 'a!date_add')); 



An image of what i would have:

http://img685.imageshack.us/img685/7994/valeurb.jpg


Can someone help me plz?

Guillaume.

plz excuse my english, i'm french ^^". (i have post in english & french forum)

Link to comment
Share on other sites

  • 11 years 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
×
×
  • Create New...