Jump to content

customized back office need help with getting tables to work correctly


Recommended Posts

So i customized my back office to be more streamlined for people to enter description of items faster. problem is that nothing is being saved to the data base tables that i created. How do i go about getting the information to save to the tables?

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>';

 

 

thanx in advance

Edited by invayne (see edit history)
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...