tahaelshenawy Posted March 2, 2018 Share Posted March 2, 2018 Help i try to Override Templates backoffice columns products list and i cannot find the way i find this cod put is for old version i need to put it i backoffice the main idea to show the old version of price like 1.6 bad version 1.7 bad i need to sleep 24 hour and i did not find where i put the cod $this->fields_list = array(); $this->fields_list['id_product'] = array( 'title' => $this->l('ID'), 'align' => 'center', 'type' => 'int', 'width' => 40 ); $this->fields_list['image'] = array( 'title' => $this->l('Photo'), 'align' => 'center', 'image' => 'p', 'width' => 70, 'orderby' => false, 'filter' => false, 'search' => false ); $this->fields_list['name'] = array( 'title' => $this->l('Name'), 'filter_key' => 'b!name' ); $this->fields_list['reference'] = array( 'title' => $this->l('Reference'), 'align' => 'left', 'width' => 80 ); if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP) $this->fields_list['shopname'] = array( 'title' => $this->l('Default shop:'), 'width' => 230, 'filter_key' => 'shop!name', ); else $this->fields_list['name_category'] = array( 'title' => $this->l('Category'), 'width' => 'auto', 'filter_key' => 'cl!name', ); $this->fields_list['price'] = array( 'title' => $this->l('Base price'), 'width' => 90, 'type' => 'price', 'align' => 'right', 'filter_key' => 'a!price' ); $this->fields_list['price_final'] = array( 'title' => $this->l('Final price'), 'width' => 90, 'type' => 'price', 'align' => 'right', 'havingFilter' => true, 'orderby' => false ); if (Configuration::get('PS_STOCK_MANAGEMENT')) $this->fields_list['sav_quantity'] = array( 'title' => $this->l('Quantity'), 'width' => 90, 'type' => 'int', 'align' => 'right', 'filter_key' => 'sav!quantity', 'orderby' => true, 'hint' => $this->l('This is the quantity available in the current shop/group.'), ); $this->fields_list['active'] = array( 'title' => $this->l('Status'), 'width' => 70, 'active' => 'status', 'filter_key' => $alias.'!active', 'align' => 'center', 'type' => 'bool', 'orderby' => false ); if ($join_category && (int)$this->id_current_category) $this->fields_list['position'] = array( 'title' => $this->l('Position'), 'width' => 70, 'filter_key' => 'cp!position', 'align' => 'center', 'position' => 'position' ); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now