Jump to content

[Guide] Adding Filter-Key To Customize Tab...?


arymasco

Recommended Posts

well...

During use prestashop, i found that PS have an confusing method to be understand.

When i made a tab page for order-list (my customize only), i was fail to add 'filtered-key'

This is part of my modified form ::

 

'carrier_name' => array('title' => $this->l('Total Price'), 'width' => 50, 'filter_key' => 'pa!carrier_name', 'float' => true,'suffix' => Configuration::get('PS_WEIGHT_UNIT'), 'align' => 'right' ),

 

'product_quantity_discount' => array('title' => $this->l('QDisc'), 'width' => 86, 'float' => true, 'suffix' => Configuration::get('PS_WEIGHT_UNIT'), 'align' => 'right'),

 

'discount_quantity_applied' => array('title' => $this->l('VDisc'), 'align' => 'center', 'width' => 50)

);

 

$this->_join = 'LEFT JOIN '._DB_PREFIX_.'product pa ON (pa.`id_product` = a.`product_id`)';

 

$this->_select = 'pa.`price` AS carrier_name';

$this->_where = 'AND pa.`ACTIVE` = 1 or 0';

 

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

when i stroke with "2" or "d" for example, in the filter kolom at the result page, the tabel fail to list the sorted query requested.

 

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

I hope you or a experience prestashop cc, can help me solving this my issue

 

~chear dear

arymasco, indonesia

 

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...