Ehsanai Posted September 24, 2020 Share Posted September 24, 2020 Hi, How to I can add address state on address list BO? I can show the id_state but I don't know how to add state name. <?php class AdminAddressesController extends AdminAddressesControllerCore{ public function __construct() { parent::__construct(); $this->fields_list['id_state'] = array('title' => $this->l('id_state'), 'filter_key' => 'a!id_state'); } } Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 25, 2020 Share Posted September 25, 2020 Its advised to use the Core Developer forum for code related issues (Instead of General Topics)https://www.prestashop.com/forums/forum/116-core-developers/ If you have able to add the id_state then what's the problem in adding the state name? Are you aware how this fields_list work? Have you checked the DB table for the same? $this->fields_list['name'] = array('title' => $this->l('state_name'), 'filter_key' => 'a!name'); Where name OR id_state are DB columns. Link to comment Share on other sites More sharing options...
Ehsanai Posted September 25, 2020 Author Share Posted September 25, 2020 thank you for reply on address table just id_state show and I have to check the id_state on state table and get the state name and shows on address list with fields_list. I don't know exactly how to do this. Link to comment Share on other sites More sharing options...
musicmaster Posted September 28, 2020 Share Posted September 28, 2020 When you import the localization pack of a country that usually includes states. 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