sebtec Posted September 17, 2009 Share Posted September 17, 2009 Bonjourje souhaiterai rajouter 2 visuels dans le back officeDans l'onglet Clients >> Adresses je voudrais faire apparaitre "l'état" de maniere à avoir :ID, NOM, PRENOM, ADRESSE, CODE POSTAL, VILLE, ETAT, FRANCEEnsuite j'aimerai faire la même chose les produits dans une catégorie en rajoutant le "poids" pour avoirID, Photo, Nom, Référence, Poids, Prix de base, Prix final, Quantité, Position, Statut, Actions Je suis en version 1.2.4.0.Si quelqu'en peut m'aider, merci d'avance Link to comment Share on other sites More sharing options...
sebtec Posted September 21, 2009 Author Share Posted September 21, 2009 J'ai réussi à rajouter le poids et l'id de l'état en modifiant les fichiers AdminCatalog.php et AdminAddresses.phpje voudrais rajouter le nom de l'etat qui se trouve dans la table state quelqu'un peut il m'aider ? Link to comment Share on other sites More sharing options...
sebtec Posted September 21, 2009 Author Share Posted September 21, 2009 J'arrive à faire apparaitre le nom de l'état mais le pays disparait voici le code public function __construct() { global $cookie; $this->table = 'address'; $this->className = 'Address'; $this->lang = false; $this->edit = true; $this->delete = true; $this->addressType = 'customer'; if (!Tools::getValue('realedit')) $this->deleted = true; $this->_select = 'cl.`name` as country'; $this->_join = 'LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (cl.`id_country` = a.`id_country` AND cl.`id_lang` = '.intval($cookie->id_lang).')'; $countries = Country::getCountries(intval($cookie->id_lang)); foreach ($countries AS $country) $this->countriesArray[$country['id_country']] = $country['name']; $this->stateList = State::getStates(intval($cookie->id_lang)); $this->fieldsDisplay = array( 'id_address' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'firstname' => array('title' => $this->l('First name'), 'width' => 80, 'filter_key' => 'a!firstname'), 'lastname' => array('title' => $this->l('Last name'), 'width' => 100, 'filter_key' => 'a!lastname'), 'address1' => array('title' => $this->l('Address'), 'width' => 200), 'postcode' => array('title' => $this->l('Post/Zip code'), 'align' => 'right', 'width' => 50), 'city' => array('title' => $this->l('City'), 'width' => 150), 'country' => array('title' => $this->l('Country'), 'width' => 100, 'type' => 'select', 'select' => $this->countriesArray, 'filter_key' => 'cl!id_country'), 'state' => array('title' => $this->l('State'), 'width' => 75, 'filter_key' => 's!name')); $this->_select = 's.`name` AS state'; $this->_join = 'LEFT JOIN `'._DB_PREFIX_.'state` s ON (s.`id_state` = a.`id_state`)'; parent::__construct(); } que faut il mettre pour que le pays réapparaisse svp ? 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