invayne Posted July 27, 2012 Share Posted July 27, 2012 (edited) for some reason i just cant seem to get prestashop to place my new back office textfields info on to the tables i made in the database. so far i have added in the following codes into classes/product.php /** @var string track listing */ public $track_listing; $fields['track_listing'] = pSQL($this->track_listing); 'meta_track_listing' => 'isGenericName', 'meta_keywords' => 'isGenericName', $fields[$language['id_lang']]['track_listing'] = (isset($this->track_listing[$language['id_lang']])) ? pSQL($this->track_listing[$language['id_lang']], true) : ''; and in the admin/tabs/adminproducts.php i have added in the following code <tr> <td class="col-left"><b>'.$this->l('Catalog Posting:').'</B><br /><br /><i><B><U>('.$this->l('TRACK LISTING').')</U></B></i></td> <td style="padding-bottom:5px;" class="translatable">'; foreach ($this->_languages as $language) echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').';float: left;"> <textarea class="rte" cols="100" wrap= "on" rows="20" id="track_listing_'.$language['id_lang'].'" name="track_listing_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'track_listing', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea> </div>'; echo ' </td> </tr>'; but nothing seems to be adding the info typed into the textfileds into the db. it will stay on the textfields but it wont take that info an stick it into the tables in the database. so im missing a piece of code but i have no idea what that code is so any info would be great. thanx in advance Edited July 27, 2012 by invayne (see edit history) Link to comment Share on other sites More sharing options...
invayne Posted July 27, 2012 Author Share Posted July 27, 2012 just to add my new tables were added to ps_product_lang table were the description an short description tables are. Link to comment Share on other sites More sharing options...
Recommended Posts