在商城中购买了一主题
在测试中出现了一些问题
在 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
在使用Vapestore电子商城主题时,遇到Contact us页面提交表单时出现错误提示:""An error occurred while sending the message, please try again.""。该问题可能由于表单缺少必要字段导致。解决方案是修改Themesvapestoremodulescontactformviews emplateswidgetcontactform.tpl模板文件,添加隐藏字段包括URL和token。通过在模板中添加<input type="text" name="url" value=""/> 和 <input type="hidden" name="token" value="{$token}" />,并隐藏URL字段,可以尝试解决此问题。"
108242032,9797040,理解线性可分支持向量机:间隔最大化与求解,"['机器学习', '支持向量机', '间隔', '分类']
3072

被折叠的 条评论
为什么被折叠?



