在哪里可以找到我的opencart文件中"div“class=-class=_id的”文本/内容“?我想要更改一般的文本。请参阅链接:http://bionatura.noez.in/bionatura/index.php?route=account/return/insert
例如,更改“到货院长”;找不到页面(.css?,.php.?etc)进行更改!
发布于 2012-12-07 21:11:12
这可以很容易地从后端完成:
管理-->系统-->本地化-->返回
不需要更改任何代码。
发布于 2012-08-12 04:15:07
您可以在/catalog/controller/account/return.php上找到控制器文件。你的控制器方法是插入方法。您可以使用语言文件更改页面上的某些文本。对于此页面,您的语言文件为/catalog/language/YOUR_LANGUAGE/account/return.php。您可以搜索Dean on Arrival并更改您想要的内容。
muy语言文件的示例:$_['entry_reason'] = 'Reason for Return:';。如果您从语言文件中更改此行,则从控制器文件中$this->data['entry_reason'] = $this->language->get('entry_reason');此行,并
<div class="return-reason"><span class="required">*</span> <b><?php echo $entry_reason; ?></b><br />
<table>
<?php foreach ($return_reasons as $return_reason) { ?>
<?php if ($return_reason['return_reason_id'] == $return_reason_id) { ?>
<tr>
<td width="1"><input type="radio" name="return_reason_id" value="<?php echo $return_reason['return_reason_id']; ?>" id="return-reason-id<?php echo $return_reason['return_reason_id']; ?>" checked="checked" /></td>
<td><label for="return-reason-id<?php echo $return_reason['return_reason_id']; ?>"><?php echo $return_reason['name']; ?></label></td>
</tr>
<?php } else { ?>
<tr>
<td width="1"><input type="radio" name="return_reason_id" value="<?php echo $return_reason['return_reason_id']; ?>" id="return-reason-id<?php echo $return_reason['return_reason_id']; ?>" /></td>
<td><label for="return-reason-id<?php echo $return_reason['return_reason_id']; ?>"><?php echo $return_reason['name']; ?></label></td>
</tr>
<?php } ?>
<?php } ?>
</table>
<?php if ($error_reason) { ?>
<span class="error"><?php echo $error_reason; ?></span>
<?php } ?>这些行将影响我的.tpl文件,您可以从控制器文件中找到模板文件名。
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/account/return_form.tpl')) {
$this->template = $this->config->get('config_template') . '/template/account/return_form.tpl';
} else {
$this->template = 'default/template/account/return_form.tpl';
}对于默认的return.php模板文件为default/template/account/return_form.tpl。
https://stackoverflow.com/questions/11917240
复制相似问题