提交表单时出现 An error occurred while sending the message,please try again.
在商城中购买了一主题
在测试中出现了一些问题
在 Contact us 页面中,提交表单时出现
An error occurred while sending the message,please try again.
这样的错误提示
在网站查找到相关资源
这种问题主要是表单提交时缺少一些字段
主题模板
Themes\vapestore\modules\contactform\views\templates\widget\contactform.tpl
这是原模板的
修改后
<footer class="form-footer text-xs-right">
<style>
input[name=url] {
display: none !important;
}
</style>
<input type="text" name="url" value=""/>
<input type="hidden" name="token" value="{$token}" />
<input class="btn btn-primary" type="submit" name="submitMessage" value="{l s='Send' d='Shop.Theme.Actions'}">
</footer>
这修改的内容,我是查看以下内容进行修改
modules\contactform\views\templates\widget\contactform.tpl