【发布时间】:2013-05-15 05:53:42
【问题描述】:
在我的 magento 应用程序中,结帐页面将使用 validation.js 文件显示错误消息。
当我在新的帐单地址中单击以继续而不输入某些值时,它会显示错误消息为This is required field..
我想将此消息更改为其对应的字段名称。
我需要显示为First name is a required field..
我该怎么做?
编辑
这是位于 customer/widget/name.phtml 中的输入框:
<input type="text" id="<?php echo $this->getFieldId('firstname')?>" name="<?php echo $this->getFieldName('firstname')?>" value="<?php echo $this->escapeHtml($this->getObject()->getFirstname()) ?>" title="<?php echo $this->getStoreLabel('firstname') ?>" maxlength="255" class="input-text validate-firstname" <?php echo $this->getFieldParams() ?> />
这是输出。
【问题讨论】:
标签: validation magento magento-1.7