Jump to content

нужна помощь. Как сделать, чтобы имя курьера можно было прописывать в разных языках?

Recommended Posts

Народ подкажите как сделать имя курьера на разных языках. По умолчанию нельзя его прописывать в разныз языках. Фото прилогаю.




Код AdminCarriers.php


	   	 <label>'.$this->l('Company:').' </label>
			<div class="margin-form">
				<input type="text" size="25" name="name" value="'.htmlentities($this->getFieldValue($obj, 'name'), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
				<span class="hint" name="help_box">'.$this->l('Allowed characters: letters, spaces and').' ().-<span class="hint-pointer"> </span></span>
				<p class="clear">'.$this->l('Carrier name displayed during checkout').'<br />'.$this->l('With a value of 0, the carrier name will be replaced by the shop name').'</p>
			<label>'.$this->l('Logo:').' </label>
			<div class="margin-form">
				<input type="file" name="logo" />
				<p>'.$this->l('Upload logo from your computer').' (.gif, .jpg, .jpeg '.$this->l('or').' .png)</p>
			<label>'.$this->l('Transit time:').' </label>
			<div class="margin-form">';
			foreach ($this->_languages as $language)
				echo '
				<div id="delay_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;">
					<input type="text" size="41" maxlength="128" name="delay_'.$language['id_lang'].'" value="'.htmlentities($this->getFieldValue($obj, 'delay', intval($language['id_lang'])), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
			$this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'delay', 'delay');
			echo '
				<p style="clear: both">'.$this->l('Time taken for product delivery; displayed during checkout').'</p>
			<label>'.$this->l('URL:').' </label>
			<div class="margin-form">
				<input type="text" size="40" name="url" value="'.htmlentities($this->getFieldValue($obj, 'url'), ENT_COMPAT, 'UTF-8').'" />
				<p class="clear">'.$this->l('URL for the tracking number; type \'@\' where the tracking number will appear').'</p>



Share this post

Link to post
Share on other sites

Я даже сократил вам поиск. Действуйте по аналогии.

Времени проверять самому нет. Рано на работу.

P.S. учите php


да я тоже хитрый ) так же делал, но не работает, там видимо в MySql базе в разделе ps_carrier_lang необходимо создать стоблец name...может тогда заработает

Share this post

Link to post
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More